bug fixed sql runningCount & add statLog support