voting mechanism prototype v2 update database