[DB] Add a macro: TRANSACTION to make code simple.