docs: function index(req, res, next) {
    var nextPage
      , prevPage
      , page
      , links = {}
      , link = req.url + '?page=';
  
    db.users.all({page: req.query.page, limit: req.query.limit}, function(err, result) {
      if(err) { return next(err); }
  
      page = result.page;
      nextPage = result.count - (result.limit + result.offset) > 0;
      prevPage = page > 1;
  
      if(nextPage) links.next = link + (page + 1);
      if(prevPage) links.prev = link + (page - 1);
      if(Object.keys(links).length) res.links(links);
  
      res.json({
        links: links,
        page: page,
        count: result.count,
        users: result.rows,
        next: nextPage,
        prev: prevPage
      });
  
    });
  }