public Object getStat() throws Exception {
        Connection c = con.connect();
        try {
            ResultSet set = c.prepareStatement(query).executeQuery();
            if (set.next()) {
                return set.getObject(1);
            }
            else {
                return "<Empty Query Result>";
            }
        }
        finally {
            c.close();
        }
    }