Definition for stored procedure addNewPages. SET NOCOUNT ON added to prevent extra result sets from interfering with SELECT statements.