add error handler for mongoose to allow auto_reconnect
update mongoose and mongodb