fix mysql parsing