RTB uses PHP as a medium to interface with a MySQL database. You will need to learn PHP first, then look at the RTB scripts (mainly RTBH_Support.cs) to see how I did it. You will find the method I use is more effective when dealing with special characters or large volumes of data.