A Categorical Approach To Data