get sql attachments on ci