Prevent Historical Database connection creation or script to disable it

Hi all,
We have windows created for gateway management and one of those is the scripted creation of Database connections. This works great except that every database connection that gets created also created the associated Historical Tag Source.
Is there anyway to NOT have it created automatically when using system.db.addDataSource?
Or is there a way through scripting to disable the Historical Source after creation of the DB connection?

I know it sounds trivial to have to go to the web config and disable the history, but when you are dealing with 45+ gateways with new ones being added it seems weekly sometimes, this can be a time sink.

Perhaps you can disable it by writing a SQL update on the SQLite ignition internal database