add foreign keys on shares table