fix another query stmt and bool vals