connection pool demo code