renaming filenames successfully in the database