INSERT INTO accounts (
  contact_info_alias,
  contact_info_color,
  contact_info_email,
  contact_info_external,
  contact_info_favorite,
  contact_info_id,
  contact_info_note,
  contact_info_phone_number,
  contact_info_sid,
  contact_info_time_zone,
  enabled,
  error,
  id,
  name,
  protocol_id,
  remember_password,
  require_password,
  user_info
)
VALUES (
  :contact_info_alias,
  :contact_info_color,
  :contact_info_email,
  :contact_info_external,
  :contact_info_favorite,
  :contact_info_id,
  :contact_info_note,
  :contact_info_phone_number,
  :contact_info_sid,
  :contact_info_time_zone,
  :enabled,
  :error,
  :id,
  :name,
  :protocol_id,
  :remember_password,
  :require_password,
  :user_info
)
ON CONFLICT (id)
DO UPDATE SET
  contact_info_alias = :contact_info_alias,
  contact_info_color = :contact_info_color,
  contact_info_email = :contact_info_email,
  contact_info_external = :contact_info_external,
  contact_info_favorite = :contact_info_favorite,
  contact_info_id = :contact_info_id,
  contact_info_note = :contact_info_note,
  contact_info_phone_number = :contact_info_phone_number,
  contact_info_sid = :contact_info_sid,
  contact_info_time_zone = :contact_info_time_zone,
  enabled = :enabled,
  error = :error,
  name = :name,
  protocol_id = :protocol_id,
  remember_password = :remember_password,
  require_password = :require_password,
  user_info = :user_info
