text: const mongoose = require("mongoose")
  const MongoURI = process.env.MONGODB_URI
  class Database {
  
      constructor() {
          this.connect();
      }
  
      connect() {
          mongoose.connect(MongoURI)
          .then(() => {
              console.log("Database Connection Successful!");
          })
          .catch((err) => {
              console.log("Database Connection Failed!" + err);
          })
      }
  }
  
  module.exports = new Database();