Demonstrating construction and execution model of SQL triggers, working with PHP in the command line for debugging and testing