Moved person dict/row mapping to module scope
Created general dictToRow method
Update personDictToRow to use dictToRow