add PubSub for all db methods