Improved DB error handling.  Be sure to check logs/debug.log if you're having trouble connecting to the database.