Fixed bug on add-topic-on-db function.