Recoding mongo II

Working code for mongo database writing. Checks to see if there is a
highscore!