Moved from iterative batching to reliance on sql power MUCH FASTER!