make mongo configurable