store df_trie to db