 (defn find-by
   [^clojure.lang.Keyword table ^java.util.Map criteria]
   (jdbc/query
-   db
+   (config :db)
    [(gen-find-by-sql table criteria)]))
 
 (defn insert-record
   [^clojure.lang.Keyword table ^java.util.Map params]
   (jdbc/insert!
-   db
+   (config :db)
    table
    params))
 

  [^clojure.lang.Keyword table ^java.util.Map lookup-fields ^java.util.Map update-params]
  (let [where-clause (sql-dsl/where lookup-fields)]
    (jdbc/update!
     db
     table
     update-params
     where-clause)))

  (:require [clojure.java.jdbc                  :as jdbc]
            [java-jdbc.sql                      :as sql-dsl]
            [task-tracker.server.service-config :refer [config]]))

(defn gen-find-by-sql
  [^clojure.lang.Keyword table ^java.util.Map criteria]
