       api))
 
 
-(defrecord WebServer [github-crawler database port]
+(defrecord WebApp [jetty database port]
   component/Lifecycle
   (start [component]
     (do

    (println ";; Stopping github crawler"))
  )

(defn find-countries [database]
  (d/q '[:find ?name
         :where [?e :db/ident ?name]]
       (d/db (:connection database))))

(defn sum [req]
  {:status 200

    (println ";; Starting database")
    (let [conn (connect-to-database uri)]
      (assoc this :connection conn)
      ;(println "connected to " conn)
      ))

  (stop [this]
    (println ";; Stopping database")
