Added mysql event tracking