add change detection stored procedure