update db structure and data