add indexes for sorting and case insensitive search