get contacts by ids