Refactored SQLiteDataRepository.