Construct sql query with javascript that does NOT return with quotes

I am attempting to create a sql request at a button push. It returns quotes around the sql statement whether I generate it as “totext” in formulas or whether I use js to pull the data and return a result in plain text. Whenever I use the “sql request” item, it shows up with quotes around it and my database rejects it. Please help. I am using an “Update” statement, BtW. Thanks!