title: Refactor database system

description:
All documents should be stored as content addressable hash, e.g. hash, doc, created_at,
┃ updated_at. documents should be a file system layer on top e.g. collection, path, hash,
┃ created_at, updated_at. (collection,path)
┃
┃

┃ All documents should be stored as content addressable hash, e.g. hash, doc, created_at,
┃ updated_at. documents should be a file system layer on top e.g. collection_id, path, hash,
┃ created_at, updated_at. (collection,path) is unique. There is also collection which stores PWD
┃ + glob pattern, name (\w+). Every document is treated as path qmd://collection.name/

status: open

issue_type: task


title: Refactor database introduce qmd collection *


title: Create collection add|remove