How do you fix some database items that got corrupted due to a bug? How do you ensure code review and time logs with the person triggering the execution? Considering that manual database updates in production are not a good thing.
I faced this problem with a couple of companies. There was never a good solution.
Does anything exist that I am not aware of?
Ideally, all steps are scripts that have been code reviewed and tested in a staging or dev environment.
When it comes to DB migrations, the code is updated to work with the old and the new. The db migration happens and is ran by a script that is start/stoppable and has logs. The code is then updated to not need the old db stuffs.
Bad data integrations and poor UI validation bleed garbage data into the data store. That's just the reality of life. If you're constantly fixing records and cleaning data, you need to fix it at the source. Assuming there's a pattern, you can fix the data integration, automated process, or poor UI that's producing those records.
Generally speaking, you want good constraints at the data model layer, in order to prevent bad data from being persisted to the data store by the application layer. It takes a good understanding of database design and data modeling to engineer a good model with constraints. A well structured and properly normalized schema will outlast multiple application layer backends and front-ends, for decades perhaps. Making sure you add proper unique constraints, do not accept NULL values, add required validation to fields, check constraints for various logic, and proper relationship management and normalization of the model.
Once you have the proper constraints on the database table, the app layer will no longer allow poor data to be written that violates those constraints, and the errors will propagate back out to the end user, without ever being persisted in the data store.
Of course constraints can't catch all bad data, the rest really relies on having a good support system and reproducing problems and fixing the processes and integrations that produce poor/unwanted data records.