fix some bug in mysql dump script