refactored Data namespace in order to manage transactions outside the repository