extract connection pool provisioning into method