Added database connection
Added login functionality