Fix to SQL on inserting tags to handle tag with apostrophe (U4-3980)

Simple fix just to escape the apostrophe in SQL