fixing errors on using mysql as log

already removed all use of EventLog