@@ -0,0 +1,750 @@
+from sqlalchemy import create_engine%0Afrom sqlalchemy.orm import scoped_session, sessionmaker%0Afrom sqlalchemy.ext.declarative import declarative_base%0Afrom bookmarks import app%0A%0ADATABASE_URL = 'mysql://%7B%7D:%7B%7D@%7B%7D/%7B%7D'.format(%0A    app.config%5B'DATABASE_USERNAME'%5D,%0A    app.config%5B'DATABASE_PASSWORD'%5D,%0A    app.config%5B'DATABASE_HOST'%5D,%0A    app.config%5B'DATABASE_NAME'%5D%0A)%0A%0Aengine = create_engine(DATABASE_URL, convert_unicode=True)%0A%0Adb_session = scoped_session(sessionmaker(autocommit=False,%0A                                         autoflush=False,%0A                                         bind=engine))%0A%0ABase = declarative_base()%0ABase.query = db_session.query_property()%0A%0A%0Adef init_db():%0A    import bookmarks.models%0A    Base.metadata.create_all(bind=engine)%0A

Add database setup file