Export to GncXml clean up

Move all export code from db adapter to exporter.