Update CS336Schema.sql

add some triggers, not sure if they would work... need help...