handling with db version while querying for facets