update db, city should used delta set in template