def __init__(self, setup=False):
    self.connection = sqlite3.connect('db/app.sqlite3.db')
    self.connection.row_factory = sqlite3.Row
    if setup:
        self.setup()
def __init__(self, setup=False):
    self.connection = sqlite3.connect('db/app.sqlite3.db')
    self.connection.row_factory = sqlite3.Row
    if setup:
        self.setup()