getPendingTransactions method added to transactionDAO