fix the db/file data refreshing issue