datamodel fns for defining entities, pulling record keys, parsing xml
and creating keys from string
new fns