Doing a external database instead of webhooks

I have watched a small clip regarding ‘Robase’ I was wondering if anyone could be so kind to assist in setting this up as my brain is puzzled.

Robase:

local robaseModule = require(game:GetService("ServerScriptService").Moderation.RobaseService)
local secretStore = game:GetService("DataStoreService"):GetDataStore("Secret")

local defaultSettings = {
	
}

local RobaseService = robaseModule.new(
	
)

local defaultRobase = RobaseService:GetRobase()
local sucess, serverSettings = defaultRobase:GetAsync("serverSettings")

local function applySettings()
	
end
local function initializeSettings()
	
end
local function keepUpdating()
	
end

Datastore itself:



local DSS = game:GetService("DataStoreService")				
local banDS = DSS:GetDataStore("banDS")


game.Players.PlayerAdded:Connect(function(plr)
	local key = plr.UserId.."-banned"
	local succ, val = pcall(function()
		return banDS:GetAsync(key)
	end)
	
	if (succ) then
		if (val) then 	
			if (val[2] == true) then 
				plr:Kick("\n You are permanently banned. \n Reason: \n"..val[1])
				print("Player has been banned and kicked!")
			end
		end
	else
		print("There was an error while checking: "..plr.UserId.." , "..plr.Name)
		warn(val)
	end
end)

game.ReplicatedStorage.BanRequest.OnServerEvent:Connect(function(plr, plrToBan, BanMsg)
	print(plrToBan)
	local key = plrToBan.."-banned"
	local success, err = pcall(function()
		banDS:SetAsync(key, {BanMsg, true})
	end)
	local playerName = game.Players:GetNameFromUserIdAsync(plrToBan)
	if game.Players:FindFirstChild(playerName) then
		game.Players:FindFirstChild(playerName):Kick("You are banned from the game! \n Reason: \n"..BanMsg)
	end
end)

game.ReplicatedStorage.KickRequest.OnServerEvent:Connect(function(plr, plrToKick, kickMsg)
	print(plrToKick)
	game.Players:FindFirstChild(plrToKick):Kick(kickMsg)
end)

game.ReplicatedStorage.AskServer.OnServerEvent:Connect(function(plr, plrid)
	print("There was an onserver event on the AskServer!")
	print(plrid)
	local succ, err = pcall(function()
		return banDS:GetAsync(plrid.."-banned2")
	end)
	
	if succ then
		if err then
			if err[2] == true then
				local boolean = true
				print("boolean is equal to true")
				game.ReplicatedStorage.SendClient:FireClient(plr, boolean)
				print("sended the boolean (true) to the client")
			else
				local boolean = false
				print("boolean is equal to false")
				game.ReplicatedStorage.SendClient:FireClient(plr, boolean)
				print("sended the boolean (false) to the client")
			end
		else
			local boolean = false
			print("boolean is equal to false")
			game.ReplicatedStorage.SendClient:FireClient(plr, boolean)
			print("sended the boolean (false) to the client")
		end	
	end 
end)

game.ReplicatedStorage.UnbanRequest.OnServerEvent:Connect(function(plr, plrToUnban, msg)
	local key = plrToUnban.."-banned"
	local success, err = pcall(function()
		banDS:SetAsync(key, {msg, false})
	end)
end)

Thank you!