CC-5450 : Refactor Media Management (Classes/DB) in Airtime

working on creating better rules.
adding order by and relative dates.