Part of the scribal bureaucracy were trained what