anchor.diff:  		}
   		inventory_json = JSON.encode(slots);
   
  -		String queryString = "UPDATE inventories SET inventory_json = @inventory_json FROM users AS u where u.id = @user_id";
  +		String queryString = "UPDATE inventories SET inventory_json = @inventory_json WHERE user_id = @user_id";
   		int numRowsUpdated = await dbConn.execute(queryString,this);
   
   		if(numRowsUpdated > 0)
  
positive.code: 		}
  	}
  
  	Future<int> takeItem(String name, int count, PostgreSql dbConn)
  	{
  		Completer c = new Completer();
  		List<Map> slots = JSON.decode(inventory_json);
  		List<int> removeItems = [];
  		List<int> possiblyRemove = [];
  
negative.code: 
  		inventory_json = JSON.encode(slots);
  
  		String queryString = "UPDATE inventories SET inventory_json = @inventory_json WHERE user_id = @user_id";
  		int numRowsUpdated = await dbConn.execute(queryString,this);
  		return numRowsUpdated;
  	}
  
  	List<Map> getItems()
  