Recheck Database after upgrade for correct structure

Iam following Owncloud/Nextcloud since version 4 or 5. Scince then a lot of stuff has changed, regarding apps, and features also the structure of the database. I got several issues regarding the db structure of tables resolved due to upgrades and errormessages, but now for example i got stuck with the activity_mq table, which will not hold any data. To put it better I am not able to send mails on changes with the activitiy:send-mails feature.
I would like to generally check the current database schemas and columns (shouldnt be to hard, as all apps define their intended structures) via an occ command, similar to db conversion and db-update indicies.
Currently Iam not aware of any comparison database which shows the correct and new strutcture for the tables. As well I would like to clean the database from old tables (of old apps) which are not used anymore.

Thanks in advance

Link to github issue: https://github.com/nextcloud/server/issues/15361