some errors remain in queries
fixing UpdatePerson and query inconsistencies.