Postgresql Delete Duplicate Rows In Python