public static Company[] getCompanies() {

		ArrayList<Company> companies = new ArrayList<Company>();

		try {

			Statement s1 = conn.createStatement();
			ResultSet rs = s1
					.executeQuery("Exec getCompanies");

			if (rs != null) {
				while (rs.next()) {

					String name = rs.getString("name");
					String hq = rs.getString("HQ");
					int perks = rs.getInt("perks");
					// System.out.println(name + " " + hq + " " + " " + perks);

					companies.add(new Company(name, hq, perks));
				}
			}

		} catch (Exception e) {
			e.printStackTrace();
		}

		return companies.toArray(new Company[companies.size()]);
	}