This change fixes the queries that populate the ma parent and child terms. It also adds methods to dump the ontology map terms.