public String getServerStatus() throws SQLException {
		for(int i = 0; i < values.length; i++) {
			keyWords.put(keys[i], values[i]);
		}
		DatabaseMetaData metadata = conn.getMetaData();
		serverStatusString = ""; // clear string
		serverStatusString += "-----------------------Server status-----------------------\n";
		serverStatusString += "Current user: " + metadata.getUserName() + "\n";
		serverStatusString += "Current database: " + DBName + "\n";
		serverStatusString += "Server url: " + metadata.getURL() + "\n";
		serverStatusString += "Server version: " + metadata.getDatabaseProductVersion() + "\n";
		rs = stmt.executeQuery("show status");
		while(rs.next()) {
			for(Map.Entry<String, String> word : keyWords.entrySet()) {
				String val = word.getValue();
				String key = word.getKey();
				String rsVal = rs.getString("Value");
				String rsValName = rs.getString("Variable_name");
				if(rsValName.equals(key)) {
					if(rsValName.equals("Uptime")) {
						serverStatusString += val + calcUptime(rsVal) + "\n";
						break;							
					} else {
					serverStatusString += val + rsVal + "\n";
					break;
					}
				}
			}				
		}
		return serverStatusString;
	}