Fixed important issue on thread_iter which wasn't updating the thread iteration.
Added initial load to SQL of the results.