MDL-42349 database activity:fixed broken links after deleting picture or
attachments