Added isEngagementEvent() function to mysqlProcAndFuncBodies.sql.