Connection pooling implementation