added getQueries for db widget