the code is for a database application, I am trying the figure out why the transaction fails when i correctly mnage to enter the data. It goes for the else loop and ends the tra