public int getRank()
  {
    int i = 1;

    Connection conn = null;
    ResultSet rs = null;
    PreparedStatement ps = null;
    try
    {
      conn = iConomy.getiCoDatabase().getConnection();
      ps = conn.prepareStatement("SELECT * FROM " + Constants.SQLTable + " WHERE hidden = 0 ORDER BY balance DESC");
      rs = ps.executeQuery();

      while (rs.next()) {
        if (rs.getString("username").equalsIgnoreCase(this.name)) {
          return i;
        }
        i++;
      }
    } catch (Exception ex) {
    }
    finally {
      if (ps != null) try {
          ps.close();
        } catch (SQLException ex) {
        } if (rs != null) try {
          rs.close();
        } catch (SQLException ex) {
        } iConomy.getiCoDatabase().close(conn);
    }

    return -1;
  }