Fix METS extractor

Add parent id before saving and fix nested set problem