Properly use dbIDs in their correct mlss range

The AUTO_INCREMENT trick doesn't work for collections. Instead, we're doing
direct SQL queries at the end of the pipeline.
"skip_set_internal_ids" is not used any more