unlike the heavily fortified demilitarized zone between north and south korea , the border to the north was a cursory affair , mainly meant to restrict the flow of refugees from fleeing into china from the democratic people 's republic of korea .