“Democracy” in the sense of “a government with large amounts of citizen participation via voting, strong rule of law, and peaceful transition of power” (this is an entirely fine usage; it’s the
main way most political scientists use the term day-to-day, ditto ordinary people, that’s why there are
so many openings for incorrecting people online with “ackshually only direct democracy is democracy, the rest is sparkling representative republics”, which, again, isn’t how people who study government generally use the term) is failing, because rule of law is failing. This is a (partial, in this hypothetical, but far more complete in the real thing I’m alluding to) clear failure of government.
“Democracy” as in people are voting and the people they elected are wielding power (nb it is not necessarily the case that voters like that crime isn’t being prosecuted in my hypothetical, even in cases that their system of presumably-also-democratic government legally requires it—it could be that this prosecutor is popular despite that) is working.
Maybe you just mean that votes are resulting in things happening, period, regardless of whether those things are legal according to laws established and upheld by prior elected governments, and even if the system isn’t operating anywhere near its foundational legal basis, and that’s the disconnect?
(Outside the hypothetical, rule of law has always kinda struggled at times but is simply collapsing this term in ways and to a degree that’s not been seen in living memory, certainly; voting has been under attack for decades and especially lately between the ‘00s-today baseless but effective attacks on confidence in elections, the “find me votes” and illegal electors pushes having no consequences and the guy behind them currently holding effectively all federal levers of power and quite a few state ones, increasing gerrymandering activity, and the VRA being on life support and likely soon to be dead; and we’ve not seen peaceful transition of power in as shaky a place as it is post-Jan-6th [and the reactions thereto]… maybe ever, aside from the actual civil war? Certainly not since the 19th century; taken together, yeah, American democracy in the former sense is doing extremely poorly and large parts of it are entirely broken at the moment, and it’s very much not clear how much, if any, of it will recover, and it’s a safe bet a lot of that’s going to get worse at least in the short term)