I still don’t understand why you rename the one and not the other.
But it’s likely not your problem anyway, since
Most of the time this indicates a permissions problem.
Make sure the user Discourse uses to connect to your database has full rights on your database, including the ability to enumerate tables. Preferably make it the owner.