modify getBrainData.php so that it returns diff_nodes and diff_links