Track write actions to the database

Seems like there’s a plugin out there that does quite this!

It’s VersionPress!

In this blog post is explained what they used to track all the complicated changes.

Instead of using the ‘query’ filter they use the option to create a db.php file in the wp-contents directory to extend $wpdb like explained in this post: wp-content/db.php : where is this file?