Store scores in database.