added pk indexes for directly vote
fixed missing import