Fix MSSQL issue, account course badges settings in cron