conect to a external db and publish some data