Added query to check if object exists in fedora