corrupted db crashing the app on startup - ref #814