working bulk_insert and assignSuperKingdom