Fix bug with cache not saving scores and remove missed redundant MySQL code.