private boolean isError(int winner, String date, DBService dbService) {
        try {
            String qTore = "CREATE OR REPLACE VIEW tore AS SELECT goalshome AS goals, mdate FROM blmatch WHERE home_team = " + winner + " AND mdate < \'" + date + "\' UNION SELECT goalsguest AS goals, mdate FROM blmatch WHERE guest_team = " + winner + " AND mdate < \'" + date + "\'  ORDER BY mdate DESC FETCH FIRST 5 ROWS ONLY;";

            dbService.execUpdate(qTore);


            String qSTore = "SELECT SUM (goals) FROM tore;";
            String tore = null;

            tore = dbService.execScrollableQuery(qSTore);
            if (tore == null) {
                tore = "0";
                return true;
            }
        } catch (org.postgresql.util.PSQLException e) {

        } catch (SQLException e) {
            System.out.println("isError");
        }
        return false;
    }