moving to karma.
modified the dbEventMngr.
test case for dbEventMngr added.