connection pool class contains method