anchor.diff:  		D.associate(C) //link up with the client and add verbs
   	message_admins("[key_name_admin(usr)] edited the permissions of [use_db ? " rank [D.rank.name] permanently" : "[admin_ckey] temporarily"]")
   	log_admin("[key_name(usr)] edited the permissions of [use_db ? " rank [D.rank.name] permanently" : "[admin_ckey] temporarily"]")
  +
  +/datum/admins/proc/sync_lastadminrank(admin_ckey, datum/admins/D)
  +	var/sqlrank = sanitizeSQL(D.rank.name)
  +	admin_ckey = sanitizeSQL(admin_ckey)
  +	var/datum/DBQuery/query_sync_lastadminrank = SSdbcore.NewQuery("UPDATE [format_table_name("player")] SET lastadminrank = '[sqlrank]' WHERE ckey = '[admin_ckey]'")
  +	if(!query_sync_lastadminrank.warn_execute())
  +		return
  +	to_chat(usr, "<span class='admin'>Sync of [admin_ckey] successful.</span>")
  
positive.code: 			force_readmin(admin_ckey, D)
  		if("deactivate")
  			force_deadmin(admin_ckey, D)
  	edit_admin_permissions()
  
  /datum/admins/proc/add_admin(use_db)
  
negative.code: 	var/use_db
  	var/task = href_list["editrights"]
  	var/skip
  	if(task == "activate" || task == "deactivate" || task == "sync")
  		skip = TRUE
  	if(!CONFIG_GET(flag/admin_legacy_system) && CONFIG_GET(flag/protect_legacy_admins) && task == "rank")
  		if(admin_ckey in GLOB.protected_admins)
  