def get_name(src, min_freq = 0, max_freq = 100)     
      tmp = random_sort(@db[src.to_sym].filter{(freq >= min_freq) & (freq <= max_freq)})
      tmp.count > 0 ? tmp.first[:name] : nil
    end
def get_name(src, min_freq = 0, max_freq = 100)     
      tmp = random_sort(@db[src.to_sym].filter{(freq >= min_freq) & (freq <= max_freq)})
      tmp.count > 0 ? tmp.first[:name] : nil
    end
query the db for a name