Set the project that owns the sample. We determine this by setting the
project_id for the sample to the first project in the query.
Add project_id index on samples.
Determine uses and shares for projects (for samples)
Add project_id to new samples. Ensure that the field exists.
Debug and test sharing and uses.