Bug while connecting to the database to get the topics