I have two questions about Hyperledger Fabric，can somebody help me?Thank you : I'm a novice fabric, hope someone can answer my two questions:
1:When I call the "Invoke" method, how is the data passed to my Chaincode?Can you post some primary functions?
   

    {
          "jsonrpc": "2.0",
          "method": "invoke",
          "params": {
              "type": 1,
              "chaincodeID":{
                  "name":"mycc"
              },
              "ctorMsg": {
                 "args":["invoke", "a", "b", "10"]
              }
          },
          "id": 3
        }



2:How and when the consensus service put data to database?