Design and development of algorithms for identifying termination of triggers in active databases. (29th December 2011)