Refactor the functions that calculate the marks
Add the first version to the functions that update the score in the mongo
Add new command to migrate the scores initialy