Java 8 functional JDBC utility code