1. the code was utterly messy, trying to remove from the DB files and
to remove from disk #xpointer uris.
2. LIKE substituted by =
3. added QUICK and LOW_PRIORITY to the DELETE statement
4. removed unuseful and unused debugging code that used to slow down every
deletion