don't crash when the database fails to open, all data will be lost