Postgres Select Unique Value Sqlite Python Command Prompt