Fix product downloads inserted multiple times

As data was pushed in $data array in the foreach loop and immediately inserted, the first download was inserted n times, the second n-1 times, ...