INSERT INTO operations (did, hash, prev, sig, nullified, operation, created_at)
VALUES ($1, $2, $3, $4, $5, $6, $7)
ON CONFLICT (did, hash) DO UPDATE SET sig=excluded.sig,
                          nullified=excluded.nullified,
                          operation=excluded.operation,
                          created_at=excluded.created_at