Generating query to create a treeview array for the organizational chart. First is building a multidimentional array, find a reference keyt which is the manager ID and add it to array and create a loop. This process is still ongoing and will continue tomorrow.