anchor.diff:  		log_query_debug("Query used: [sql]")
   		slow_query_check()
   
  +/datum/DBQuery/proc/run_query(async)
  +	query = connection.BeginQuery(sql)
  +	if(!async)
  +		. = !query.WaitForCompletion()
  +	else
  +		in_progress = TRUE
  +		UNTIL(query.IsComplete())
  +		in_progress = FALSE
  +
   /datum/DBQuery/proc/slow_query_check()
   	message_admins("HEY! A database query timed out. Did the server just hang? <a href='?_src_=holder;[HrefToken()];slowquery=yes'>\[YES\]</a>|<a href='?_src_=holder;[HrefToken()];slowquery=no'>\[NO\]</a>")
   
  
positive.code: 	wait = 1 MINUTES
  	init_order = INIT_ORDER_DBCORE
  	var/const/FAILED_DB_CONNECTION_CUTOFF = 5
  
  	var/schema_mismatch = 0
  	var/db_minor = 0
  
negative.code: 	if(IsConnected())
  		return TRUE
  
  	if(failed_connection_timeout <= world.time) //it's been more than 5 seconds since we failed to connect, reset the counter
  		failed_connections = 0
  
  	if(failed_connections > FAILED_DB_CONNECTION_CUTOFF)	//If it failed to establish a connection more than 5 times in a row, don't bother attempting to connect for 5 seconds.
  		failed_connection_timeout = world.time + 50
  		return FALSE
  
  	if(!CONFIG_GET(flag/sql_enabled))
  