Applying the save/read functions of the Database into the Activities transitions (those will be refactored).