Feature/cx database attachments

There was an omitted mapping for Attachment which resulted in attachments unable to be saved in some situations. I added the mapping which will fix this.