Make mongodb configurable