Added reconnect for mongodb in persistence/index.js