mongodb changes : bare minimum

working version