Randomness: simplify vote DB handling (todo: move voting functionality into a separate plugin) [skip ci]