(function loadRules() {
  return db.rules()
  .then(function(rows) { rules = rules.concat(rows); });
})();
 handler: function(request, reply) {
   var promise = db.rules();
   return reply(promise);
 }