Updated context type and media type to be consistent with database.