title: Getting Error "this._initialize is not a function" while using mangojs module
body: <p>Here is my code.</p>
  
  <pre><code>var express = require("express");
  var router = express.Router();
  var mangojs = require("mangojs");
  var db = mangojs('mongodb://***:***@XXXXXX.mlab.com:43900/tasks', ['tasks']);
  
  router.get("/tasks", function(req, res, next){
  
      db.tasks.find(function(err, tasks){
  
          if(err){
              res.send(err);
          }
          else{
              res.json(tasks);
          }
  
      });
  
  });
  </code></pre>
  
  <p>by running this getting below error on node.js terminal</p>
  
  <p>this._initialize is not a function >> Attaching an image of error message in terminal.</p>
  
  <p><a href="https://i.stack.imgur.com/2yzjH.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/2yzjH.png" alt="enter image description here"></a></p>