chooses a host and a template, updates the db after inviting