Database logic for one_Min_Counts