UPDATE dsm_api
SET (last_download_objid, last_download_total, last_download_date) = (:mdId, :total, :date)
WHERE id = :apiId AND service = :dsId