changes include fixes to UpdatePerson logic and query updates.