table refactor
table add subscriptions map
table add sql subscribe statement