Refactoring the base framework for supporting multiple DBs in Mongo and multiple indices in ES.

Now, connection and other configuration related information must be
passed through each base repository class created per DB(in mongo) or
per index(in ElasticSearch). I've bifurcated the data into two Mongo DBs
now for better understanding.