upload part of sharing logic. still need to add to shares table