bug fix: use "1" not "true" for SQL boolean