Alter the paging stored procedures to use parameters when executing sp_executesql