Postgresql Drop Duplicate Rows In Python