Postgresql Find Duplicate Rows In Python There Is No Restriction