add db.rel.removeAttachment functionality