setup iterator to loop through array
Iterator adds lastInsertedRowId to array. Method returns that array