Added error callback for mongoose.connect