MDL-42349 database activity:fixed links to deleted pictures and
attachments