Text this: Inferring functional dependencies for XML storage