added method to recover the pubs key:id dict
changed methods names. We are working with the keys, not the ids
reimpleted the method to remove deleted pubs