fixes and a couple mongodb manage commands