Refactored importer

100% spec coverage of importer. Also some DB and field naming optimizations. The API stays the same(for now).