filter activity finished
apply filters when querying the database