Populate the transaction data to the database as well