adding console to the CLI
update now check if data already set
adding dirty falg to stats
refactor tests for weekly_statistics
refactor statistics service class