restores the file path into DB