Agenda votes are now persisted properly in the database. Cleaned up some code.