Fixed Menubar exit;
No longer explicitly closes database when closed from Menubar;
Removed all instances of parent and replaced with root;
Reordered code again;