Updated queries, added bar fields and protobuf serialization