OT: Survey changes in a MySQL-database

Hello list!

I want to build a browser based iptables administration gui.
My intention is to store the rules in a MySQL database and activate
the new rules by clicking "submit changes".

So I will need a daemon/tool which surveys changes in the database
and generates the new iptables commands. To activate the new
rools this daemon/tool must run with root privileges!!

Is there an "easy" why to do this with RoR/ruby?

thanx.