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

working on the generate function for playlists.