Using MERGE inside STORED PROC