title: How to create a new db in mongoose?
body: <p>If I use Mongoose in node.js I need to do:</p>
  
  <pre><code>var mongoose = require('mongoose');
  mongoose.connect('mongodb://localhost/myDB');
  </code></pre>
  
  <p>But what if I just installed mongodb and I don't have any DB at the moment? How can I create a new DB using mongoose in node.js before doing <code>mongoose.connect('mongodb://localhost/myDB')</code>? Or if there is no such <code>myDB</code> then it will create a new one? or will throw an error that there is no such a DB?</p>