moving firmly into SQL based for PIDs, testing for large sets to start