          [:custom_attributes
             (pc/fn->
               (hash-map-subset
-                [:avg_n_ptpts :n_owned_convs :n_ptptd_convs]))]
+                [:avg_n_ptpts :n_owned_convs :n_ptptd_convs :n_owned_convs_ptptd :avg_n_visitors]))]
          [:remote_created_at
             #(/ (:created %) 1000)]]))))
 

      get-db-users-with-stats
      (ko/where (in :email emails))
      (ko/select))))

(defn update-icuser-from-dbuser
  [dbuser]

  (->
    get-db-users
    (ko/fields :owned_convs.avg_n_ptpts
               :owned_convs.avg_n_visitors
               :owned_convs.n_owned_convs
               :owned_convs.n_owned_convs_ptptd
               :ptpt_summary.n_ptptd_convs)
    ; Join summary stats of owned conversations
    (ko/join :left
