Fixed SQL script #2