Removing debug code
Removed unused operator
Setting MAs from the database overwrites GUIDs

This is just the sensible way for this to work.
Don't refresh analyses from the database before save

They are now being loaded from the database automatically.
Minor changes

Some comments, some rearrangements
Minor changes

Some rearrangements and comments
Undoing a comment

There was an accidental commit