I believe those two professions were:
- bureaucrat
- Scribe
Cuneiform is a system of writing first developed by the ancient Sumerians of Mesopotamia After this development government and priest in that civilization realize they need to create a profession to spread religion through writings (hence scribe was born) and documented all government events (hence bureaucrat was born)