reliability: use psycopg2 thread safe connection pools