Modified to use PooledConnectionFactory.

Signed-off-by: Rob Urquhart <rob.urquhart@sfu.ca>