Fixed mongodb issue
Removed comment and added selection
added update mechanism