// initialize it with known data..
// that should wipe out dupes.
- var matches = this.execute("SELECT count(id) as nid FROM Attachment WHERE id = %d".printf(
+ var matches = this.execute("SELECT id as nid FROM Attachment WHERE id = %d".printf(
int.parse(sid)));