dao method to fetch attachments