Store scores in database