fix detection of database themes