lib: use parens for query calls