Postgres Show Databases Using Sql In Python For All Selected Lines