adding index for coredata to speed it up