done database auth

authentication through database.