anchor.diff:  		return "Database disabled by configuration"
   	return _dm_db_error_msg(_db_con)
   
  -/datum/controller/subsystem/dbcore/proc/NewQuery(sql_query, cursor_handler = Default_Cursor)
  +/datum/controller/subsystem/dbcore/proc/NewQuery(sql_query, cursor_handler = DM_DEFAULT_CURSOR)
   	if(IsAdminAdvancedProcCall())
   		log_admin_private("ERROR: Advanced admin proc call led to sql query: [sql_query]. Query has been blocked")
   		message_admins("ERROR: Advanced admin proc call led to sql query. Query has been blocked")
  
positive.code: 	var/address = CONFIG_GET(string/address)
  	var/port = CONFIG_GET(number/port)
  
  	_dm_db_connect(_db_con, "dbi:mysql:[db]:[address]:[port]", user, pass, Default_Cursor, null)
  	. = IsConnected()
  	if (!.)
  		log_sql("Connect() failed | [ErrorMsg()]")
  
negative.code: #define FAILED_DB_CONNECTION_CUTOFF 5
  #define DM_DEFAULT_CURSOR 0
  
  SUBSYSTEM_DEF(dbcore)
  	name = "Database"
  	flags = SS_NO_FIRE
  	init_order = INIT_ORDER_DBCORE
  
  	var/schema_mismatch = 0
  	var/db_minor = 0
  	var/db_major = 0
  
  	var/_db_con// This variable contains a reference to the actual database connection.
  	var/failed_connections = 0
  