Added Parallel.For loop to write to all table entites