write import to json files for later import to mongo for faster speed