removing duplicate function getPersonByEmail()