public Boolean updatePassword(String login, String newPass) {
        try {
            Statement updatePassword = waggrConnection.createStatement();
            String stm = String.format("UPDATE users SET password = '%s' WHERE login = '%s';",newPass,login);
            int i = updatePassword.executeUpdate(stm);
            if (i==1) {
                updatePassword.close();
                return true;
            }
            updatePassword.close();
        }catch (SQLException e) {
            e.printStackTrace();
        }
        return false;
    }