sql update including the custom field location table