Updated mysql script