Working code using JDBC driver (instead of JDBI)