New mcwork model with database queries to get media tables