CC-5450 : Refactor Media Management

using a propel aggregate column causes circular reference problems.