Fix remove method in mongodb module

Fix remove method in mongodb module