Add environmental variable support for mongoDB