configured service to work with mongo DB in websockets. fixed some issues.