DB structure change for attachments