make mongo database configurable