Refactored MediaResources.media_entries as scope