Updated ORM::import() to prevent overlap during importing and support history table