add updating transaction and getting transaction by id