fix mysql status parsing