avoiding duplicated DB-Error in second layer

### Description
o Transaction ID for ontimeinterval
o LM_I for every database operation
o Avoided repeating 'Database Error' in second call-layer

If I understand correctly, before this PR, the transactionId() was using a parameter that at the was never used (as the result is provided by snprintf into transactionId thread-global variable). Thus, this particular line change is a fix.
Is that correct?