Upgrade db code 2