update the db structure