Added a method to query the database for the set of all unique values for a stat, enables the next step which is calculating percentile values for each