use mysql to calculate the metadata group (use md5)