Update SQLs and change fields