fixed stored procedure for resource list