added update on conflict insert for pg, synced with latest v1.63