Update db stucture