engine = create_engine('sqlite:///ratings.db', echo=True)
session = scoped_session(sessionmaker(bind=engine, autocommit=False,
    autoflush=False))
Base = declarative_base()
Base.query = session.query_property()
Base.metadata.create_all(engine)
flask-login not sure how to make it work using sqlite3