I'm building a small program that connects to MongoDB-Atlas.
I created a connection, a Schema, a Model and created a document.
but somehow my DB name is "test" and Collection name is "users" without me defined it in the code or in Atlas, is that the default names? and how to create/rename a DB and a collection.

the code :

**user.js**

```
const mongoose = require('mongoose');
const SchemaObj = mongoose.Schema;
const userSchema = new SchemaObj({
    name : {
        type:String,
        require:true

    },
    email : {
        type:String,
        require:true
    },
    password: {
        type:String,
        require:true
    }
});

mongoose.model('User',userSchema);

```

**app.js**

```
const express = require('express');
const app = express();
const rout = express.Router();
const PORT = 8888;
const {connectionString} = require('./Keys');
const mongoose = require('mongoose');

app.use(express.json());
app.use(require('./routes/auth'));

app.get('/',(req,res)=>{
    console.log('succesfully connected');
    res.send('im in!');
});

let server = app.listen(PORT,'0.0.0.0',()=>{
    let FuncPort = server.address().port
    let host = server.address().address
    console.log("Example app listening at http://%s:%s", host, FuncPort)
});

const client = mongoose.connect(connectionString, {
  useNewUrlParser: true,
  useUnifiedTopology: true
});

mongoose.connection.on('connected',()=>{
    console.log('connected to mongodb oh hell yea');
});

mongoose.connection.on('error',()=>{
    console.log('error connecting to mongodb oh hell yea');
});

```

**auth.js**

```
const mongoose = require('mongoose');
const express = require('express');
const route = express.Router();
require('../moduls/User');
const user = mongoose.model("User");

rout.post('/sign',(req,res)=>{
    const {name,password,email} = req.body;
    if(name && password && email) {
        console.log('you god damn right!');
        res.json("you god damn right in response");
    } else {
        console.log('you are god damn wrong stupid idiot!');
        res.status(422);
        res.json("you are god damn wrong you stupid idiot in response");
    }

    user.findOne({email:email}).then((resolve,reject)=>{
        if(resolve)
            return res.status(422).json("user already exist yo");

        const newUser = new user({ name, email, password });
        newUser.save().then(() => {
            res.json('saved user!!!!');
        }).catch(err => {
            console.log("there was a problem saving the user")});
        }).catch(err => {  
            console.log(err);
        })
});
module.exports = route;

```

By the way, what is the difference between `mongoose` and `MongoDB` libraries?