preparations to add update on conflict insert for pg