fix upgradedb mysql