adapted for the new phonebook url to use, tweaked the query creator to reduce lines of code