Added mocha testcase
refactored MongoDb connector
refactored Electric job
Added system configuration function