Added new method to data source to get the SQL query builder object for the data source.
Needed in the new metric architecture.
Use the new way to create a Metrics object using query builder.
Adopted new metrics to work with metrics_tool.py and integrated in the platform.
Metrics could also work standalone.