A Small DataBase connection wrapper for Pandas
from dbconnect.connect import SqlConnect
driver = "driver_name" e.g "SQL SERVER"
server = "server_name" e.g "123.65.9"
database = "db_name"
db = SqlConnect(driver, server, database)
query = "SELECT * FROM table_name"
df = db.run_query(query)
if_exists : possible values {‘fail’, ‘replace’, ‘append’} Here df is pandas Dataframe
db.write_to_table(df, table_name, 'append')