Increase size of iteration, fix output of exported file.
Misc fixes.

* Stash PIDs in DB, instead of constantly rewriting file
* Avoid parsing needlessly reparsing aggregated MODS documents
Merge pull request #110 from adam-vessey/7.x-LBL-61

Increase size of iteration, fix output of exported file.