I was following a tutorial on youtube. At 20:00 they ask to create .db file. They go to a python shell and type:
from main import db db.create_all()