Connection to database is now working