added mongo and more socket event listeners and emits