Modified methods getAllIdxAndClients and getAllIdxFromMaster. They return now: - getAllIdxAndClients: an int[] - getAllIdxFromMaster: a HashMap<Integer,String> Got rid of having ResultSets returned which is very messy and dangerous.