modified transaction validation logic based on new understandings of STF, test cases updated accordingly
added toString for objects used in logs
modified update method to use preparedstatement, to fix the warning 'getParameterType call not supported'