You can check hotscripts.com for a script that already exists, or search here for code that others have posted. Neither of which are "development tools", but just a good place to start.
Personally, I haven't seen anything like what you are looking for. Which means, you need to write it yourself. May I suggest you set up a local development system (apache,PHP, mySQL, phpmyadmin and an editor) to write the script.
Doesn't sound too bad. Sounds like you know what you need.
If you get stuck, post the code and I'll take a look.
Good luck.