mongo auth and misc tweaks