connection pooled postgres queries