Pass query values through to SqlString.format

fixes #590