Is `DB` a singleton? Would be better to pass it into the `AnormIndex` as an argument.