implemented mongo-manager.js