add filters to allow sql optimizations on the user table for sites with large user counts