move character queries to character model