add sql connection from datasources to ByDate