Added method to DB for getting the array of indexed values.