fix nasty bug in mysql clean_up_events_table function