Ensure the sql is rebuilt if altered after sqlFinal is generated