updating medialibrary