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

fixing an import, adding some indexes to the database.