Offset must be set to start of track_view since we work directly on the db. The sum_of_weights_iter function should now be working