heatmap reorder & variable bug on the database node module

Moved d3 heatmap into it's own modular function.  
Fixed a createVote bug in the database node module.