Added mongo environment variable check