# Connecting to mysql database using python sql alchemy
app.config['SQLALCHEMY_DATABASE_URI'] = 'mysql+pymysql://<username>:<password>@<host>/<dbname>[?<options>]'
# SQL ALCHEMY - Establishing connection to mssql
from flask_sqlalchemy import SQLAlchemy
import urllib
params = urllib.parse.quote_plus('DRIVER={SQL Server};SERVER=localhost;DATABASE=myDB;Trusted_Connection=yes;')
app.config['SQLALCHEMY_DATABASE_URI'] = "mssql+pyodbc:///?odbc_connect=%s" % params
db = SQLAlchemy()
db.init_app(app)