UpdateSQL should write to stdout not stderr

Description

the sql output should go to stdout for better piping

Environment

All in updateSQL mode

Reporter

Nathan Voxland

Fix versions

Affects versions

Priority

Major
Configure