title: Connect-Mongo and Express-session cannot work well
body: <p>I have tried to connect my MongoDB remotely, and did CURD successfully using MongoClient object.</p>
  
  <p><a href="https://i.stack.imgur.com/UKWOh.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/UKWOh.png" alt="enter image description here"></a></p>
  
  <p>However, when I wanted to add session support on my Node.js service with packages <strong>connect-mongo</strong> and <strong>express-session</strong>, it always showed me the following error
  <strong><em>"MongoError: database name must be a string"</em></strong>.
  <br/>Some say it's needed to use package <strong>mongoose</strong> to connect on the MongoDB, but it, however, did not work either.<br/><br/>The same code is workable on packages <strong>mysql</strong> and <strong>connect-mysql</strong> when connecting to MySQL server remotely and locally.</p>
  
  <p><a href="https://i.stack.imgur.com/dig5m.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/dig5m.png" alt="enter image description here"></a></p>
  
  <p><a href="https://i.stack.imgur.com/pIOD0.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/pIOD0.png" alt="enter image description here"></a></p>