added deleting of transactions, updating clearing of cache