Added Query Exception and Referential Integrity Responces