transaction sql added but not working