Constructor updated

Parameters are passed as an object for next development needs.
Migrating the query method

Call of couch base views.
Add elastic search dependencies