Update SQL and PROCEDURE