update db structure