Use spaces instead of underscores for relation hash key
Use UNION instead of OR for relation deletes [schema change]

And add back index on libraryID/subject