public boolean Authorize(String username, String password)
  {
    System.out.print("Authorize");
    try
    {
      Statement statement = conn.createStatement();
      String sql = "SELECT password FROM players WHERE username = '" + username + "'";
      ResultSet res = statement.executeQuery(sql);
      if (res.next())
      {
        String correctPwd = res.getString("password");
        if (correctPwd.equals(password))
        {
          System.out.print(" success");
          return true;
        }
        else
        {
          System.out.print(" fail");
          return false;
        }
      }
      else
      {
        System.out.print(" pending. New player register");
        PlayerMP newPlayer = new PlayerMP(username, password, -1, -1, null, -1);
        this.addPlayer(newPlayer);
        return true;
      }        
    } catch (SQLException e) {
      e.printStackTrace();
    }
    return false;
  }