Remove duplicate records from Postgres table