Added method to grab unique topics in the database