Added DBevents service, refactoring