MongoDB Config changes and fix for require case issue