Extracted 'localdatabase' stuff to just use the graph model.