public String[][] getStringArrayByQuery(String query) throws SQLException {
		checkConnection();
		if(conn != null) {
			Statement stmt;
			try {
				stmt = conn.createStatement();
				ResultSet resSt = stmt.executeQuery(query);
				ArrayList<String[]> al = new ArrayList<String[]>();
				int rowCount = resSt.getMetaData().getColumnCount();
				while(resSt.next()) {
					String[] s = new String[rowCount];
					for(int i = 0; i < rowCount; i++) {
						s[i] = resSt.getString(i+1);
					}
					al.add(s);
				}
				String[][] ret = new String[al.size()][];
				return al.toArray(ret);
			}
			catch(SQLException e) {
				throw e;
			}
		}
		else {
			throw new SQLException();
		}
	}