create attachments table