Updated PeerDB with version supporting auto-generated fields.
Updated with PeerDB API changes.
Renamed variable.