Postgres Select Unique Value Sqlite Python Documentation