Upgrade db structure