          DEFAULT-DB-URL
          (get-person email))]
 
+    ;; seems like a hacky way to do this
     (when (not= result '())
       (-> result (first) :id))))
 

   (h/columns :first_name :email-address)
   (h/values [[name email]])
   ;; some way to return the id created??
   (honey/format)))

(defn add-person!
  "Add a person and return the id"
  [name email]
  (let [query (add-person name email)]
    
    (j/execute! DEFAULT-DB-URL query)))

(defn- get-person
  [email]

  (:require [clojure.java.jdbc :as j]
            [honeysql.core :as honey]
            [environ.core :refer [env]]
            [honeysql.helpers :as h]
            [honeysql-postgres.helpers :as ph]
            [honeysql-postgres.format :as pf]))

(def DEFAULT-DB-URL "postgresql://just_married:just_married@localhost:5440/just_married")

