Table 'nextcloud.oc_appconfig' doesn't exist

I ran a few commands suggested by @nevets963 on a previous thread

sudo tail -n 100 ~/umbrel/app-data/nextcloud/data/nextcloud/data/nextcloud.log | jq '.message' | uniq

and got these results:

Unable to generate a URL for the named route "cloud_federation_api.requesthandler.addshare" as such route does not exist.
The loading of lazy AppConfig values have been triggered by app "core"
Unable to generate a URL for the named route "cloud_federation_api.requesthandler.addshare" as such route does not exist.
Capabilities of OCA\\CloudFederationAPI\\Capabilities took 0.67 seconds to generate.
Unable to generate a URL for the named route "ocs.password_policy.api.generate" as such route does not exist.
Unable to generate a URL for the named route "ocs.password_policy.api.validate" as such route does not exist.
Failed to connect to the database: An exception occurred in the driver: SQLSTATE[HY000] [2002] Connection refused

What is going on here?