fix mysql script