Lazy use of the connection and upgrading to Scala 2.10