Update SQL output to latest changes