Why looking for the existence if db instead of location_map?