For each exporte xxx_db() predicate, added corresponding xxx_dbi() predicate
with same functionality, but takes intern_termhash codes for input trie
databases, and produces them for output databases. By using these, the
user can efficiently table these databases, no matter how large.