INSERT INTO public.scores (
    application_key,
    application_timestamp,
    hd_score_m1,
    hd_score_m2,
    hd_score_iso_m2
)
VALUES (
    $application_key,
    $application_timestamp,
    $hd_score_m1,
    $hd_score_m2,
    $hd_score_iso_m2
)
ON CONFLICT (application_key)
DO UPDATE
    SET application_timestamp = EXCLUDED.application_timestamp,
        hd_score_m1         = EXCLUDED.hd_score_m1,
        hd_score_m2         = EXCLUDED.hd_score_m2,
        hd_score_iso_m2     = EXCLUDED.hd_score_iso_m2;

