added IntegrityError and Database Error Exception