fix mysql connection