adding all data/tables/procedure/trigger relative to the question similarity check.. tested with new database without any issue.. just make sure u run the file in correct order..
only change 2 lines to print the actual message return by the triggers instead of printing the error stack .. we still need to show this message for the user