use clojure.java.jdbcs protocols even for json. also some tests