Update topicHandler

- Change name from createSubtopicTags to topicHandler.
- Change location in code
- Update code for get weight from database (still in comment)