fixed trailing spaces in db and typo in eventMngr