Changing database dependency in transaction class to use interface.