Updated dbIntegrityCheck to fixed image refs of undefined