Updated SQL script with fixed database.