Database.GetTopics and slight cleanup

Began to add the getTopics function in the database, and cleaned up a
variable name in the website controls to match the standard