Read votes from database