Improved TUI for MongoDB handling