Sql Remove Duplicate Rows Postgresql