Rename some variables, and pull the sourceid and the lineupid from the videosource table.