move data import code into it's own source file