corrected get_phonebook for full functionality