Update db structure