text: const mongoose = require('mongoose');
  
  module.exports = {
      init: () => {
          const dbOptions = {
              useNewUrlParser: true,
              useUnifiedTopology: true,
              autoIndex: false,
              reconnectTries: Number.MAX_VALUE,
              reconnectInterval: 500,
              poolSize: 5,
              connectTimeoutMS: 10000,
              family: 4
          };
          
          mongoose.connect('mongodb+srv://CommandHandler:DraculaIs2009@cluster0.lyhmb.mongodb.net/<dbname>?retryWrites=true&w=majority', dbOptions);
          mongoose.set('useFindAndModify', false);
          mongoose.Promise = global.Promise;
          
          mongoose.connection.on('connected', () => {
              console.log('Mongoose connection successfully opened!');
          });
          
          mongoose.connection.on('err', err => {
              console.error(`Mongoose connection error: \n ${err.stack}`);
          });
          
          mongoose.connection.on('disconnected', () => {
              console.log('Mongoose connection disconnected');
          });
      }
  };
  