Quit the event handlers if the event is already cancelled
Add carriage returns to SQL statements for clarity