[musicdb] Cosmetics from the original MusicBrainz patch

These are a bunch of primarily cosmetic and minor changes from the original MusicBrainz patch, separated out here so they can go in separately. They tidy up some of the more complex functions in the MusicDB & GUI and hopefully make the code more consistent.