public String getPassword(String login) {
        try {
            Statement getPassword = waggrConnection.createStatement();
            String stm = String.format("SELECT password FROM users WHERE login = '%s';",login);
            ResultSet result = getPassword.executeQuery(stm);
            if (result.next()) {
                String res = result.getString(1);
                getPassword.close();
                return res;
            }
            getPassword.close();
        } catch (SQLException e) {
            e.printStackTrace();
        }
        return null;
    }