1.Write DB when change file and rename file