Cavity sideband cooling of trapped molecules