remove dead code
no need to compare topic name

when one wants to put the same topic into the database at
a different prefix (i.e. in a different table) it is not
necessary for the prefix name to be the same.

the prefix is used for replaying and does not convey any
extra information as table_name === prefix + topic_name