add custom repository of transactions
Some refactoring