fix mysql scripts