import: add compound, unique index on (city, station_id)

Allows us to use collection.update(upsert=True) with confidence.
import: factor out common parts of updating the database