Update graphs and db structure