fix bug so voting can happen after sort
add db for tracking votes and restrict to one vote per usr