managing psycopg2 db connection string