updating to new api of mongo driver, come convinience Methods in config