             [clojure.java.jdbc :as jdbc]
             [akvo.commons.psql-util :as pg]
             [hugsql.core :as hugsql]
-            [cheshire.core :as json]
-            [org.akvo.dash.import.common :refer (make-dataset-data-table)])
-  (:import [org.postgresql.util PGobject]))
+            [org.akvo.dash.import.common :refer (make-dataset-data-table)]))
 
 (hugsql/def-db-fns "org/akvo/dash/import/flow.sql")
 

(defn questions [form]
  (mapcat :questions (:question-groups form)))

(defn dataset-columns [form]
  (let [common [{:title "Identifier" :type "string"}
                {:title "Latitude" :type "number"}

                {:title "Submitter" :type "string"}
                {:title "Submitted at" :type "date"}]
        qs (map (fn [q]
                  {:type (question-type->dash-type (:type q))
                   :title (:display_text q)})
                (questions form))]
    (map-indexed (fn [idx col]
