text: //Imports
  var _ = require('lodash'),
      fs = require('fs');
  
  var env;
  
  /**
   * Constructor
   */
  Util = function() {
  
  };
  
  /**
   * Fetch Database details from the provided DB details
   */
  Util.prototype.getDBDetails = function(dbConnection, database) {
      return _.find(dbConnection.db, function(db) {
          // console.log("db.name:" + db.name + " == database:" + database);
          if (db.name === database) {
              return db;
          };
      });
  }
  
  /**
   * Fetchs the configuration from supplied config.json
   * TODO: Implement Async IO
   */
  Util.prototype.getConfig = function(config) {
      return env = JSON.parse(fs.readFileSync(config, 'utf8'));
  }
  
  /**
   * Fetchs the DB list from supplied config.json
   * TODO: Implement Async IO
   */
  Util.prototype.getDB = function(config) {
      env = JSON.parse(fs.readFileSync(config, 'utf8'));
      if (env.db) return env.db
  }
  
  /**
   * Returns the instance of Util
   */
  exports.Util = Util;