added a collection for invites
added publish function for inviteCollection