fix mysql connections