Parse this person name:

Megan Z. David Edwards (born 1801)
user
first_name: Megan
last_name: Edwards
middle_names:
- Z.
- David
temporal:
- start: 1801
  end: null
  type: life_span
titles: []
extra_info: []
assistant