I am trying to build a database class in python, where i can add tables and rows and run other methods.

I'm facing an issue where when I add a table, it's not getting saved in the global dictionary. My code is as follows;

```
class DataBase():
    def __init__(self):
        self.data = {}

    def addTable(self, tableName):
        self.data[tableName] = {}

```

When I run that, then add a table and call on the dictionary, I still get an empty dict (as below)

```
tableName = "table"
DataBase().addTable(tableName)

DataBase().data

#output
{}

```

Can anyone help explain why this is?