refactoring: moved daily_stats cron code to com_dailystats