updated voting: now with database