Convert queries for polls and models categories to KunenaDatabaseQuery