added query that for each existing study access request, creates a new entry for each restricted file in the released study version and then deletes all the old study access requests