changing from raw mongodb driver to mongoose, splitting config into multiple environments