Modified populate and entities so same row not inserted twice
Populate can populate multiple datasets (not tested)