mysql script fixed