[BUGFIX] this change prevents the db from crashing when the secondary is down
0.2.4