Added logic for getting data  from SQL Server for MySQL and JSON reports