Some changes in db structure.