don't pull from the database twice, actually do the filtering