title: NeDB ( with Vue-Electron ) couldn't save local DB file
body: <p>I'm developing Vue-Electron with NeDB.
  On using NeDB, I've encountered problem that NeDB don't save local file though I set option <code>filename</code> and <code>autoload: true</code>.</p>
  
  <p>I tried output log of db object when load NeDB, it correct path set.</p>
  
  <pre><code>Datastore {inMemoryOnly: false,  
    autoload: true,  
    timestampData: false,  
    filename: "./db/nedb.db", 
    compareStrings: undefined, …}  
    autoload: (...)compareStrings: (...)  
    executor: Executorfilename: "./db/nedb.db"  
    inMemoryOnly: falseindexes: Objectpersistence: PersistencetimestampData: ...
  </code></pre>
  
  <p>I saw other posts. but I couldn't figure out how to do <code>Then in the renderer process get the datastore via Electron.Remote</code>
  <a href="https://stackoverflow.com/questions/37310666/nedb-persistance-in-electron-app">NEDB persistance in Electron app</a></p>
  
  <p>I thought may it happen because NeDB needs file exist before run script. So I tried <code>touch nedb.db</code> but that didn't work.</p>
  
  <p>Moreover, other odd thing: I have another Vue Application that is using NeDB, and the data showed. But I don't set a db path in that application. Inserted data by this application doesn't exist in the other application's db file.</p>
  
  <p>Below is my code. If Someone could help me.
  Thanks.</p>
  
  <pre><code>const remote = require('electron').remote;
  const app = remote.app;
  const path = require('path');
  var db = new nedb({
          //filename: path.join(app.getPath('userData'), 'library.db'),
      filename: './db/nedb.db',
      autoload: true
  });
  let doc = {
      dev: true,
      message: 'test'
  }
  db.insert(doc);
  
  db.find({}, function (err, docs) {
      console.log(docs)
      console.log(err)
  })
  </code></pre>