import MD5 & improve database & modify the mask type