Code for the musicbrainz entity relationship editor