Added connection to database for login