Write spawns to SQL in the same order they appear in the sniff