 ;; ===== relation database tables =====
 
 (pldb/db-rel r-branch repo-path branch-name sha)
-(pldb/db-rel r-commit ^:index sha ctime parent-count parents)
+(pldb/db-rel r-commit ^:index sha ctime parent-count)
 (pldb/db-rel r-commit-parent ^:index sha ^:index parent-sha)
 (pldb/db-rel r-commit-path ^:index sha ^:index path)
-(pldb/db-rel r-proj ^:index sha ^:index path ^:index name version has-snaps?)
+(pldb/db-rel r-proj-path ^:index sha ^:index path ^:index blob-sha)
+(pldb/db-rel r-proj ^:index blob-sha ^:index name version has-snaps?)
 
 (defmacro q
   [db & args]

      {:shabam shabam
       :pldb
       , (vdb/from-reldata
          [r-branch r-commit r-commit-parent r-commit-path r-proj]
          reldata)}
      (do
        (println "Existing voomdb file for" (str gitdir)

          (build-shabam (vals new-branches))
          (vary-meta assoc ::dirty true))))))

(def voomdb-header "voom-db-5")

(defn ^File git-db-file
  [gitdir]
