Fix query in calculateRecentStatsAndRanks
Add cli cron system