Updated dbIntegrityCheck to include image refs