fixing changes that affected sample_details

I broke some code with wwwadmin changes.  This fixes the problem and this stored procedure is loaded on webdev-kl4 already.