Moving the database config from XML to framework code.

For testing, you will have to run through both client and admin and make sure that the proper database is always being hit.