Created to handle db actions for login.
-ININ.