moving all PubSub subscribe and publish to Db()