Configures Java 8
Uses a lambda for SQL treatments