Switch to database-wide Trie