Fix bug with setting :tags to non integer vals
DRY up test code with helpers
db-tag-counts cmd
Move general datascript helpers to datascript and keep db for app-specific fns
Move datascript helpers out of comments
Add queries for counts cmds and start rules