'Update the database with the album information. The album\'s
tracks are also updated.
:param fields: The fields to be stored. If not specified, all fields
will be.'

def store(self, fields=None):

    track_updates = {}
    for key in self.item_keys:
        if (key in self._dirty):
            track_updates[key] = self[key]
    with self._db.transaction():
        super(Album, self).store(fields)
        if track_updates:
            for item in self.items():
                for (key, value) in track_updates.items():
                    item[key] = value
                item.store()
