changed case attachments to many to many