Made TransactionProfiler handle nested transactions to the same server/DB

Change-Id: Ie4dfd4af88a9da76c76b21053bbd125c6ad3b193
Merge "Made TransactionProfiler handle nested transactions to the same server/DB"