Replace data format in sqlite with ndn data structure