you will need to export the database from the old server using PHPMyAdmin and import it to the new server. Hostgator has a tutorial for this:
http://support.hostgator.com/articles/specialized-help/technical/exporting-a-mysql-database-via-phpmyadmin
then you need to edit the connection file, change the contain information to use the the new servers information.