Made the possible filtering in the db query again.