                       (conv-update (or (convs zid) {:rating-mat (named-matrix)}) votes)
                       (catch Exception e (println "exception when processing zid: " zid))))))
                 
-            ;(upsert-results pg-spec 1001 1 "foo")
             (println "zid: " zid)
             (println "time: " (System/currentTimeMillis))
             (println "\n\n")
             (println (generate-string (prep-for-uploading (@conversations zid))))
-            ; (debug-repl)
             (println 
               (mongo-upsert-results
                 zid

            [monger.collection :as mgcol]
            [environ.core :as env]))

;(use 'alex-and-georges.debug-repl)

(println "launching poller " (System/currentTimeMillis))

(defn heroku-db-spec [db-uri]
  (let [[_ user password host port db] (re-matches #"postgres://(?:(.+):(.*)@)?([^:]+)(?::(\d+))?/(.+)" db-uri)

(defn mongo-connect! [mongo-url]
  (monger.core/connect-via-uri! mongo-url))


(defn mongo-upsert-results [zid timestamp new-results ]
  (monger.collection/update "polismath_test1248124"
    {
