Postgresql Drop Duplicate Rows In Python The