Small fixes for logged events in mysql mode