mysql fix - transactions