Moves Transaction Repository specification to database layer