Implemented queryPerson method