Based on the errors in your logs, the database has been corrupted. That’s not necessarily linked to upgrading your server but can happen if you shut down the NAS while the database is still trying to write some updates.
There’s a dedicated guide on how to do this for DSM7 – though that won’t apply to your DSM6 setup!