added new code for virtuoso connection pooling