search partially implemented
Chat pair_id added