Check MongoDB connection when initializing storage.js