multi image attachments retreival sql working