added a function(err) callback to the mongoose.connect statement and handled/logged the error.