router.get('/history', (req, res) => {
    db.list().then(resp =>
      res.json(resp).status(200));
  });