use a db for topic pulling