change quoting to use backticks

sqlite respects the single quoting, but mysql treats it as a literal, so had to change to backticks which works for both.