fix mysql type, fix delete