Generating vote model and adding relationships to topic