I am trying to replace special characters in a string so that I can insert into DB using pyodbc.It seems to be erroring when I do to execute the query and not what I concat