reading the phone book entries from the database