Fix a bug with table name logic in tax calculation. If the table name has a prefix `mage_` for example, the b ug was that the logic does a query on a table mage_mage_MYTABLE.