Further fix to profiling order for DBPerformance log

* Make sure transactionWritingIn() gets called before the profileIn()
  so the first write query shows up

Change-Id: Ife504651f6fe33f1360e817bcb05afc02f4075a5
Merge "Further fix to profiling order for DBPerformance log"