Update the SQL output to latest TDB (with sql updates)