added sqls for updating scheduled reports to new devicesdetection repotrs