get now works on immutable databases
Rewrite JSON interface