code: function update (key, scopes, callback) {
      const unlock = lock(key)
  
      get(key, function (err, account) {
        if (err) {
          unlock()
          return callback(err)
        }
  
        account.scopes = scopes
  
        db.put(key, account, function (err) {
          unlock()
          if (err) return callback(err)
          else callback(null, account)
        })
      })
    }
docs: Update a set of access scopes
  
  @name access.update
  @memberof townshipAccess
  @param {string} key - the key for the access scopes
  @param {array} scopes - array of strings
  @param {function} callback - callback with `err`, `data` arguments