Modify score tablse, add foreign keys