Preparations for #17912: More DAO methods and relevant unit test. Refs #17912.
Preparations for #17912: Various correction in various layers. Now fully working the marking for deletion, the monitoring of deletion queue and cancellation of deletion. Left to do: the actual deletion job itself. Refs #17912.