   {:questions (merge-count-maps (for [{query-type :query_type} (db/select [Card :query_type])]
                                   (let [native? (= (keyword query-type) :native)]
                                     {:total  1
-                                     :native (one-if native?)
-                                     :gui    (one-if (not native?))})))})
+                                     :native native?
+                                     :gui    (not native?)})))})
 
 (defn- dashboard-metrics
   "Get metrics based on dashboards

  []
  {:databases (merge-count-maps (for [{is-full-sync? :is_full_sync} (db/select [Database :is_full_sync])]
                                  {:total    1
                                   :analyzed (one-if is-full-sync?)}))})


(defn- table-metrics

  []
  {:users (merge-count-maps (for [user (db/select [User :is_active :is_superuser :last_login :google_auth])]
                              {:total     1
                               :active    (:is_active    user)
                               :admin     (:is_superuser user)
                               :logged_in (:last_login   user)
                               :sso       (:google_auth  user)}))})

(defn- group-metrics
  "Get metrics based on groups:
