upgrade datomic
move raw queries into a namespace

...and some arbitrary tweaks