add dailylog query by classes