Make mongodb domain configurable