Richard’s analogy is apt. Keeping up with Discourse’s data in text files would be impossible.
Even adding support for another database would cost on the order of $200,000/year.
You might be better deciding on a budget and asking in Marketplace for someone to fix your database. It’s a hard job to bid because it’s not immediately clear whether you have one corrupt index with a few records to fix up or several of them and dozens to fix.