Connection to mysql database fails