title: How to know the stateDB I'm using in hyperledger fabric
body: <p>I've installed Hyperledger fabric 2.0. I'm running the fabcar example in the fabric samples directory. The fabcar chaincode is using test-network as fabric-network. I want to know which stateDB is being used by fabcar example. </p>
  
  <p>When I run command <code>docker ps -a</code> I'm getting output as couchdb as shown below.</p>
  
  <pre><code>bdf6370d6f5d        hyperledger/fabric-couchdb                                                                                                                                            "tini -- /docker-ent…"   16 minutes ago      Up 16 minutes              4369/tcp, 9100/tcp, 0.0.0.0:5984-&gt;5984/tcp   couchdb0
  
  
  
  660ba3f7d2a4        hyperledger/fabric-couchdb                                                                                                                                            "tini -- /docker-ent…"   16 minutes ago      Up 16 minutes              4369/tcp, 9100/tcp, 0.0.0.0:7984-&gt;5984/tcp   couchdb1
  </code></pre>
  
  <p>But the chaincode is storing data in the form of key-value pair in fab-car chaincode. Key-value pair storage is for level-db</p>
  
  <pre><code>        await ctx.stub.putState(carNumber, Buffer.from(JSON.stringify(car)));
  </code></pre>
  
  <p>I'm really confused about whether I'm using level-db or state-db for fabcar example.</p>