remove map from db when fetching a file fails