Did you correct your forumpath variable in config.php? Because I've seen general database errors like that occur when a database function isn't defined thanks to a bad include from the forumpath being altered.
Also, upload the tools.php file and run it to correct your site URL and your cookie path data. Just in case.