Fix tools:run context issue
Finished queries for deleting digital objects
Using raw SQL queries.