anchor.diff:  	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)
  +	_dm_db_connect(_db_con, "dbi:mysql:[db]:[address]:[port]", user, pass, DM_DEFAULT_CURSOR, null)
   	. = IsConnected()
   	if (!.)
   		log_sql("Connect() failed | [ErrorMsg()]")
  
positive.code: 		return "Database disabled by configuration"
  	return _dm_db_error_msg(_db_con)
  
  /datum/controller/subsystem/dbcore/proc/NewQuery(sql_query, cursor_handler = 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")
  
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
  