Rename getSubTopic script to getSubtopic to be the same as the server script
Fix sql query for subtopic script.