Attached you'll find a paper giving you some pointers on how you can do this in your own database. It is not intended as a step-by-step procedure, but just as something to get you started. You will need access to SQL+ and a third party database tool in order to properly do the things described in this paper.

Please remember that triggers you add to the database are not officially supported by the Biotics Support Team. In other words, no lifeguard on duty.