Fix MySQL connection