Removed a race-condition in the voting logic by making it transactional (meanwhile fixing the issue with get_or_insert).