[DBTablesMonitoring] Use a new code fashion to do transaction.