fix minor bugs on mysql exple