func doCollections() error {
    log.Info("Loading all collections with kmedia_id")
    collections, err := models.Collections(
        qm4.Where("properties -> 'kmedia_id' is not null")).
        All(mdb)