         ;; We pickle the connection as a thunk here so it roundtrips through JS
         ;; without incident.
         {:conn (fn [] c)
-         :db (fn [] (transact/db c))
+         :db (fn [] (d/db c))
          :path path
 
          ;; Primary API.
          :ensureSchema (fn [simple-schema] (ensure-schema c simple-schema))
          :transact (fn [tx-data] (transact c tx-data))
-         :q (fn [find opts] (q (transact/db c) find opts))
+         :q (fn [find opts] (q (d/db c) find opts))
          :close (fn [] (db/close-db db))
 
          ;; Some helpers for testing the bridge.

  ;; Expects a JS array as input.
  (try
    (let [tx-data (js->tx-data tx-data)]
      (println "Transacting:" (pr-str tx-data))
      (go-promise clj->js
        (let [tx-result (<? (transact/<transact! conn tx-data))]
          (select-keys tx-result
                       [:tempids
                        :added-idents

     [cljs.reader]
     [cljs-promises.core :refer [promise]]
     [datomish.cljify :refer [cljify]]
     [datomish.api :as d]
     [datomish.db :as db]
     [datomish.db-factory :as db-factory]
     [datomish.pair-chan]
