Connection pool, updating sample code