from __init__ import db

db.create_all()

from models import Data

chips = Data(0)
db.session.add(chips)
db.session.commit()

def incClick():
    db.create_all()

    chips = Data(0)
    db.session.add(chips)
    db.session.commit()
from subprocess import call
call(["rm webapp.db"], shell=True)

from __init__ import db

db.create_all()

from models import Data

chips = Data(0)
db.session.add(chips)
db.session.commit()

def incClick():
    db.create_all()

    chips = Data(0)
    db.session.add(chips)
    db.session.commit()
Fix fatal crash on calling db script independently