Tools for importing hierarchical data into various database table structures