Updated SQL script after data cleanup