 
     (func :version.fn/remove-query-cell
       "Removes a query cell from a copy of the given version.
-      
+
       Needs a tempid for the new version."
       [db tid version query-idx col-idx term-id]
       (let [seq (fn seq [l] (when l (cons (:l/head l) (seq (:l/tail l)))))

        :version/parent parent}])

    (func :version.fn/add-query
      "Adds a new query to a copy of the given version. Needs a tempid for the
      new version."
      [db tid version]
      (let [queries (:version/queries (d/entity db version))
            new-queries #db/id[:db.part/user]


    (func :workbook.fn/update
      "Updates the version in the workbook.

      Checks that the old version is still current - throws a exception with
      type ::precondition-failed if not. Throws ::workbook-not-found if the
      workbook doesn't exist. Throws ::version-not-found if the new version
