Postgresql Insert Returning Id Into Variable Frequency