Sounds more like a task that the application should be handling itself when it processes an INSERT.