Zend certified PHP/Magento developer

Magento 2.3.2: Database prefix error running setup:upgrade

I tried to install MailChimp extension through Composer, but when running setup:upgrade I received a database error. Assuming that the problem was in the extension, I restored the backup I made just before installing the extension. Out of curiosity I run “php bin/magento setup:upgrade” again and received the same database error!
The error I get is:

SQLSTATE[42S02]: Base table or view not found: 1146 Table ‘mg2_mg_catalogrule_product_price_replica’ doesn’t exist, query was: SHOW CREATE TABLE mg2_mg_catalogrule_product_price_replica

The prefix of my database is ‘mg2_’ and somewhere something assumes the table name starts with ‘mg_’ and then glues even my prefix in front of it.

I didn’t have this problem after the last extension I installed. How can I find out what and where a wrong table name is assumed?