Fix the ‘missing key: categories: Cannot read the portsdb!’ for portupgrade

I ran into this exact problem when trying to upgrade a bunch of ports lying around on my FreeBSD system. Luckily Well-Rounded documents the fix for this. You’ll have to upgrade portupgrade manually to rebuild its database with an updated version.