Added database code. Scores are stored locally