Ontology-Mediated Querying on Databases of Bounded Cliquewidth