fixed database bug postvote