code cleanup and removed some duplicated node module calls
Merge pull request #29 from leaena/database-cleanup

Vote database cleanup.