Correct SQL script