Fixed DB Query to the correct column name. historyDate -> transactionDateTime