Creating and using indexes for performance