code: func (nDB *NetworkDB) createOrUpdateEntry(nid, tname, key string, entry interface{}) (bool, bool) {
  	_, okTable := nDB.indexes[byTable].Insert(fmt.Sprintf("/%s/%s/%s", tname, nid, key), entry)
  	_, okNetwork := nDB.indexes[byNetwork].Insert(fmt.Sprintf("/%s/%s/%s", nid, tname, key), entry)
  	if !okNetwork {
  		// Add only if it is an insert not an update
  		n, ok := nDB.networks[nDB.config.NodeID][nid]
  		if ok {
  			n.entriesNumber++
  		}
  	}
  	return okTable, okNetwork
  }
docs: // createOrUpdateEntry this function handles the creation or update of entries into the local
  // tree store. It is also used to keep in sync the entries number of the network (all tables are aggregated)