add an iterator over the query set with gc
Add index to IP column for PeerInfo