fixes mongodb environment variables