Mysql connection working for at least reading database