Create MessageParser, which can distinguish between queries and statements, and pull out the topic from either.