Added Db
Basic pubsub infrastructure