modify codes to make stream work. Now in Catalog, Tabe has isStream flag to indicate it is stream or normal table