adding query to get contacts