Algotihm to create tracking table and other to insert data into it reflecting a trigger behavior. Must be tested