switched to using a mongo cursor method for #find_in_batches so that it isn't affected by new documents being added to the collection while it is running