connection to database is not correct