Fix bug: add version field in topic table in database