Removed SQL went to config  and added events.