in reply to Update to Database

If you're using Linux with kernel 2.6.13 or later you can use Linux::Inotify to monitor file/directory changes.