change tmp sql