Added code to add a topic model to the db