changed database and models to implement vote_count