(#1797) - fix websql compaction

Somehow #1743 introduced a regression to WebSQL
where the "compact a complicated tree" test fails.
The fix is to rephrase the query to avoid param
lists (`WHERE foo in (?,?,?)`).

Reproduced in both Safari 7 and Chrome.