So I did I fresh install of El Capitan and wanted all my messages (SMS/iMessage) from my iPhone, as I lost the message on my computer, so I made a backup through iTunes, then used iExplorer to extract the "sms.db" and the "Attachments" folder from the iPhone backup. I then deleted the "com.apple.iChat" container in my user library, and copied the "sms.db" (renaming it "chat.db") and the "Attachments" folder to the "Messages" folder in my user library. After I opened the Messages app, all the conversations were there (SMS/iMessage), but the attachments in each conversation showed, for example, "IMG_4271" with a question mark. How can I associate all the attachments with the correct conversations (I don't mind doing it manually with a .db file editor or something)? Thanks!