text: // make connection to the mongoDB database
  let mongoose = require('mongoose')
  mongoose.Promise = global.Promise
  
  module.exports = (config) => {
    mongoose.connect(config.db)
    let db = mongoose.connection
    db.once('open', err => {
      if (err) {
        console.log(err)
      }
      console.log('MongoDB ready!')
    })
  
    db.on('error', err => console.log('Database error: ' + err))
  
    require('../models/User').seedUsers()
  }
  