def initialize_database(app, db):

    # Create database if access fails
    try:
        Souma.query.get(app.config["SOUMA_ID"])
    except OperationalError:
        app.logger.info("Setting up database")
        db.create_all()

    # TODO: Update database
Inspect and create/update database
dataset/ETHPy150Open ciex/souma/nucleus/database.py/initialize_database