Fix event delete
Fix database locking in case exception thrown on commit
Fix exception logging
Make event list more simple; Fix some bugs.