[db] Added target_id in transaction data handler API