private static String getActualPassword(String name) {
    String actualPassword = null;
    try {
      Statement statement = DbConnection.connection().createStatement();
      ResultSet rs = statement.executeQuery("select password from Users where username='" + name + "';");
      while (rs.next())
        actualPassword = rs.getString("password");
    } catch (SQLException e) {
      e.printStackTrace();
    }
    return actualPassword;
  }