fixed error in mysql script