Vote database cleanup.

Sever code cleanup and removed some duplicated node module calls.