add final delete code for postgres adapter