[Release] EssentialMode base

So far i have been able to get the mysql database up and running and i have been able to successfully stream all resources for the essentialmode to my server - YAY

But now im stuck in regards to scripting.

I am attempting to add a jail system to my server
(source: [Release] Simple Jail System)
But they have conveniently left out how to script the essentialmode.

Based on their instructions i was able to create a column in the users table named “detained” but i do not know how to make a script that would change the value of detained to 1.

can someone please help me figure this out?