conn.autocommit = True ## VERY IMPORTANT SETTING, OTHERWISE IT WILL NOT RUN create_database_query = "IF NOT EXISTS(SELECT * FROM sys.databases WHERE name ...