fixed db;
added total events to log view;