updating new db structure