@@ -0,0 +1,648 @@
+from sqlalchemy import create_engine%0Afrom sqlalchemy.orm import scoped_session, sessionmaker%0Afrom sqlalchemy.ext.declarative import declarative_base%0A%0Aengine = create_engine('sqlite:///db/auth.db', convert_unicode=True)%0Adb_session = scoped_session(sessionmaker(autocommit=False, autoflush=False, bind=engine))%0ABase = declarative_base()%0ABase.query = db_session.query_property()%0A%0Adef init_db():%0A    # import all modules here that might define models so that%0A    # they will be registered properly on the metadata.  Otherwise%0A    # you will have to import them first before calling init_db()%0A    import models%0A    Base.metadata.create_all(bind=engine)%0A

Add database module