Tidy comments
Tidy up comments, don't use lengthcellsize
Quote SQL strings properly, don't worry about ?

Any optimisation for ? isn't as useful here since it's likely to be
running on a laptop, so queries aren't going to be repetadely run,
and pulling query out to run directly against DB is probably quite
useful, OTOH.