merge mongo.js into general config