necessary changes to db structure