mongodb create db
use databaseName //create a database in the mongodb instance
db.colletionName.insertOne{name:"First document"}// insert a colletions into the db
//the db will only be created when a collection is present inside of the db
OR
use databaseName
db.createCollections("collectionName")
show dbs //to check if database was added