Change in musicbrainz functions in order to work with mysql transactions