docs: function setupDb( app ) {
    app.setupDb = setupMongoose(
      {
        connection: {
          debug: config.debug,
          uri: {
            database: config.database,
            password: config.password,
            username: config.username
          }
        },
        schemas: [
          {
            'User': User
          }
        ]
      }
    )
  
    app.setupDb()
      .then(
        function ( db ) {
          app.db = db
        }
      )
      .catch(
        function ( err ) {
          app.db = {
            error: err
          }
        }
      )
  }