-- Replace classification lookupField name with numeric element id
UPDATE form_buttons fb
SET action_payload = CONCAT('{"lookupTable":"ohs_incident_types","lookupField":', fe.id,
                            ',"valueColumn":"name","formColumn":"form_id"}')
FROM form_elements fe
WHERE fb.form_id = 59
  AND fb.label = 'Open Form'
  AND fb.action_payload LIKE '%"lookupField":"classification"%'
  AND fe.form_id = 59 AND fe.field_name = 'classification';
