update vote db first before view updates