Just by guessing without looking at the error,
perhaps the issue might be: (I'm just guessing)
1. in your config.php file, make sure its
$CFG->wwwroot ='http://moodlewebsite.org';
pointing to the right url and folder,
OR
$CFG->dataroot ='/home2/jpaccart/public_html/moodledata';
make sure its pointing to the right database, If the courses are empty than its pointing to a different database, the moodle system is retrieving empty database....
which you might check this two lines...
$CFG->dbname ='xxxxxxx';
$CFG->dbuser ='xxxxxxx';
Sometimes the prefix also has changed,
$CFG->prefix ='mdl_'
check this also,
Sorry if this might not solve your problem, than I'm pretty sure it has to do with the Moodle system communication with the Database....may be others could help.....