refine mongo config