fix some problems with post-processing, including a bug in tvrage processing that would make a select query take several centuries