Support setting invited-by in database