Added support to display charts on results page
Fixed the db interface to return a proper array for JSON
Added the pie charts for displaying election results