refactor sql engine to make it hold all common code for sql datasources
refactor sql engine to make it hold all common code for sql datasources

grafana/grafana,grafana/grafana,grafana/grafana,grafana/grafana,grafana/grafana,grafana/grafana,grafana/grafana