Fix malformed SQL string when deleting Shavars by list and chunk number

Fixes #11