replaceByTypes

Replaces all rows of the given types with releases in one transaction, so releases removed or reclassified upstream are pruned and a crash mid-refresh can't leave the table half-written. Other types are untouched.