UPDATE device
SET
  device_id = $1,
  device_name = $2,
  device_location = $3,
  creation_date = $4
WHERE
  device_id = $5,