Login with functioning database

Added the ability to interact with the database