Get a elements instead of elements with href
Don't include moved_to in topic INSERT
Small whitespace change
Parse categories