title: Mongo can't create the database
body: <p>I have some problems working with mongo(mongoose on nodeJS), i think these are newbie questions, but i am new to this stuff and i am learning the beginning steps, basically i created a schema on nodeJS and connected the app to mongoDB. Below is my code for that:</p>
  
  <pre><code>var config = require('./config');
  var mongoose = require('mongoose');
  var connectionString = "mongodb://localhost:27017/ShareIdea"
  
  module.exports = function(){
      mongoose.Promise = global.Promise;
      var db = mongoose.connect(connectionString);
  
      require('../app/models/user.server.model');
  
      return db;
  };
  </code></pre>
  
  <p>then on the server side, i instantiate the mongoose, but my main problem is with the form, i want to post the data. my form is this:</p>
  
  <pre><code>&lt;form class="form" action="/users" method="POST"&gt;
              &lt;div class="some-class"&gt;
                  &lt;input type="radio" class="radio" name="userChoice" value="programmer" id="y" /&gt;
                  &lt;label for="y"&gt;Programmer&lt;/label&gt;
                  &lt;input type="radio" class="radio" name="userChoice" value="inovator" id="z" /&gt;
                  &lt;label for="z"&gt;Inovator&lt;/label&gt;
              &lt;/div&gt;
              &lt;input class="inp" type="text" name="firstname" placeholder="First Name"&gt;
              &lt;input class="inp" type="text" name="lastname" placeholder="Last Name"&gt;
              &lt;input class="inp" type="text" name="userame" placeholder="Username"&gt;
              &lt;input class="inp" type="email" name="email" placeholder="Email"&gt;
              &lt;input class="inp" type="password" name="password" placeholder="Password"&gt;
              &lt;input type="submit" class="submit inp" value="Submit"&gt;
          &lt;/form&gt;
  </code></pre>
  
  <p>this calls my router that works well, in my schema i set the names to be the same as here:</p>
  
  <pre><code>var mongoose = require('mongoose');
  var Schema = mongoose.Schema;
  
  var UserSchema = new Schema({
      firstname:String,
      lastname:String,
      email:String,
      username:String,
      password:String,
      userChoice: {type: String, possibleValues: ['programmer','Inovator']}
  });
  
  mongoose.model('User',UserSchema);
  </code></pre>
  
  <p>So my database is not creating on its own as i read in other websites, so i typed </p>
  
  <blockquote>
    <p>'use shareIdeas'</p>
  </blockquote>
  
  <p>in the cmd to create the database, writing </p>
  
  <blockquote>
    <p>show dbs</p>
  </blockquote>
  
  <p>does not show my create database, when i save the form data i don't know if i am actually saving the data, since i don't have the database, i have no idea if it is saving in a different place.</p>
  
  <p>here is how i save the form data:</p>
  
  <pre><code>var User = require('mongoose').model('User');
  
  module.exports = {
  
    create: function(req,res){
    var user = new User(req.body);
  
    user.save(function (err) {
        if (err) {
            return next(err);
        }
        res.json(user);
    });
  
  
   },
  
  };
  </code></pre>