add logic to check for mysql.events