Added sql versions of EqualWidth() and EqualFreq().