gustafn
committed
on 27 Feb 16
- fix quoting in SQL
- make code more robust