Enabling mongo driver to reconnect to DB