update name and save db info in a text file