title: Database to store list of dictionaries
body: <p>I need a way to store the following structure in a database. The context is that I have a table which includes a list of resources and I need to be able to lock this table when I conduct operations to prevent concurrent writes.</p>
  
  <p>ProjectID: abcd
  Lock: False
  Resources: [
      {
          Resource: CPU
          AvailableQuota: 50
          UsedQuota: 35
  },{
          Resource: StaticIps
          AvailableQuota: 70
          UsedQuota: 45
      }
  ]</p>
  
  <p>I have thought of putting it in a MySQL database but can't think of an appropriate way to nest the list so that we can lock on the 'ProjectId' field.</p>
  
  <p>Any pointers to a database / datastore that allows this form of datastructure nesting?</p>