Use localhost for MongoDB server if possible