generates vote model with topic_id