REST api: database filter option