Scala functional wrapper for JDBC API