fix mysql command generator