Fix $database->getSuccessfulInvitees

ref #162