Modifies indexing SQL because spree_products.count_on_hand was removed