Fetching requests from database with predicate