Create index for attachment fetching speed up