editcontactemail: reduce soql queries