update media db entities from new db model
Merge branch 'feature/init_classes' into feature/rest_services
update controllers and tests for new media db model