Db_Auth refactoring.