set up psycopg2 pool