Separated out connection pooling

Moar modularness in regards to connection pooling