fixed database return votes