Connection pooling & other fixes.