public LinkedHashMap<String, Double> ranking(int amount) {
    Connection conn = null;
    ResultSet rs = null;
    PreparedStatement ps = null;
    LinkedHashMap<String, Double> Ranking = new LinkedHashMap<String, Double>();
    try
    {
      conn = iConomy.getiCoDatabase().getConnection();
      ps = conn.prepareStatement("SELECT username,balance FROM " + Constants.SQLTable + " WHERE hidden = 0 ORDER BY balance DESC LIMIT ?");
      ps.setInt(1, amount);
      rs = ps.executeQuery();

      while (rs.next())
        Ranking.put(rs.getString("username"), Double.valueOf(rs.getDouble("balance")));
    }
    catch (Exception e) {
      System.out.println(e.getMessage());
      return null;
    }
    finally
    {
      if (ps != null) try {
          ps.close();
        } catch (SQLException ex) {
        } if (conn != null) try {
          conn.close();
        } catch (SQLException ex) {
        } 
    }
    return Ranking;
  }