sql escapes bugfix

closes #91