Fix the "update" part of the postgrest "upsert" function