
const mongoose = require('mongoose');
const MONGO_URL = 'mongodb://localhost/polarbear';
const connection = mongoose.connect(MONGO_URL);
const volunteer = require('../model/volunteer');
mongoose.connection.once('open', () => {
  volunteer.find({}).then((volunteerData)=>{

  });
});

const mongoose = require('mongoose');
const CONFIG = require('./config.json');
const connection = mongoose.connect(CONFIG.MONGO_URL);
const volunteer = require('../model/volunteer');
mongoose.connection.once('open', () => {
  volunteer.find({}).then((volunteerData)=>{

  });
});

Update email.js