Hi,
You are talking about the Radio Btns DS fields, in this case you don't need the "cp_calculatedfieldsf_insert_in_database.php" file.
In the "Column for values" you simply should enter the name of the column in the table, whose values are used as the values of Radio buttons, but only one column.
In the "Column for texts", should be entered the name of the column in the table, whose values are used as the labels of Radio buttons, but only one column.
To create complex queries yo should tick the "Custom Query" option, and create the complete query by yourself.
Please, visit the following link:
http://cff.dwbooster.com/documentation#datasource-fields-settings
Best regards.