Fixed scope of some functions.
Optimized Mongo calls for slightly faster Solr updates.
Optimized MARC record field handling a bit for a considerable speedup.