Help migrating WPMS from subdirectory to root

I developed a WP MS project for a client. During development it was in http://www.domain.com/staging/ now that the project is ready to launch I’m trying to migrate it to http://www.domain.com/ but I’m having a heck of time. If I edit the $path_to_current_blog in wp-config.php from ‘/staging/’ to anything else I get a “can’t connect to database message. I’ve tried editing the wp_blogs table all to no avail.

Anyone have any advice?

Thanks,

Colin