Actually write metadata changes to the database.

Yes, even if we somehow don't manage to magically download everything
instantly.