Fixed storing score in the db.