convert bson rpc logic to use bson.Binary instead of []byte