pseudo for create_invite command, db methods related to invitations