catch the case where db manually modified, and related class no longer exists as expected