text: const low = require('lowdb')
  const FileSync = require('lowdb/adapters/FileSync')
  
  const adapter = new FileSync('profile-database.json')
  const db = low(adapter)
  db.defaults({ entries: [] }).write()
  
  function putEntry(entry) {
  // TODO: store it locally
      db.get('entries').push(entry).write()
  }
  
  function getEntries() {
      return db.get('entries').value()
  }
  
  module.exports = {
      putEntry,
      getEntries,
  }
  