When you define a variable using SetValue, you will find that variable is saved to the SQL database automatically. Survey data, constructed lists and system variables are all saved to the SQL database by default.
In the previous post which showed you how to define the variable GenderText, look for this variable in your SQL database. It will be there.
Obviously test your variable is working as you desire.