Mongo repository WIP
Fix menu not saving correctly.