Implemented connection pooling