title: How to access and already existing (SNOWFLAKE) database with a flask application?
body: <p>I am new to flask and python in general. I just need help accessing an already existing snowflake database with flask. I just want to query the data. This is my code thus far and its not working:  </p>
  
  <pre><code>from flask import Flask, render_template, request, redirect, url_for
  from model import InputForm
  from compute import preprocess
  from sqlalchemy import create_engine, MetaData, Table
  from flask_sqlalchemy import SQLAlchemy
  
  
  app = Flask(__name__)
  app.config['SQLALCHEMY_DATABSE_URI'] = 'snowflake://&lt;user_login_name&gt;:&lt;password&gt;@&lt;account_name&gt;'
  
  db = SQLAlchemy(app)
  
  engine = create_engine()
  metadata = MetaData(bind=engine)
  
  
  engagements = db.Table('ENGAGEMENTS', db.metadata, autoload=True, autoload_with=db.engine)
  companies = db.Table('COMPANIES', db.metadata, autoload=True, autoload_with=db.engine)
  
  @app.route('/')
  def index():
  results = db.session.query(engagements).all()
  for r in results:
      print(engagements)
  return ''
  
  
  if __name__ == '__main__':
  app.run(debug=True)
  </code></pre>