minor changes in db structure