Sony Corp. of America has agreed to sell its Gracenote music metadata business to the Tribune media conglomerate for $170 million. Gracenote maintains a database of music data that’s used by streaming media services, mobile apps and in-car entertainment systems for finding and recommending tracks and providing information about them to listeners.