mysql improvements & useful migrate script!