adds associations to documents, users and annotations.