fix media controller for new db model
fix column name for media collection id
Merge branch 'feature/init_classes' into feature/rest_services