filter implemented as couchdb view