SD-320 Fix query to check if file already ingested into content archive