In Database.to_map, check for file existence prior to attempting removal.