Updated auth class to support user database.