Stop autoloading the database object, damnit. It should respect the settings in the database config.
Refactoring LocalAuthentication to use a model for database interaction.