Add support for stat record query
Pass through generations to protobuf query
Tweaks