fix query for all_joint db
change template render name => username
change method on get chats to .all_joint