Started implementing queries for the transaction table.