private void givePoints(int homeGoals, int guestGoals, Match results) throws SQLException
    {
        int homeTeamID = results.getHomeTeamId();
        int guestTeamID = results.getGuestTeamId();
        /*
         * Point giving for HomeTeam.
         */
        if (homeGoals > guestGoals)
        {
            int currentPoints = teammgr.getById(homeTeamID).getPoints();
            teammgr.setPoints(currentPoints + 3, teammgr.getById(homeTeamID));
        }
        /*
         * Point giving for GuestTeam.
         */
        else if (homeGoals < guestGoals)
        {
            int currentPoints = teammgr.getById(guestTeamID).getPoints();
            teammgr.setPoints(currentPoints + 3, teammgr.getById(guestTeamID));
        }
        /*
         * If tied give both 1 point.
         */
        else
        {
            int currentPointsHome = teammgr.getById(homeTeamID).getPoints();
            int currentPointsGuest = teammgr.getById(guestTeamID).getPoints();
            teammgr.setPoints(currentPointsHome + 1, teammgr.getById(homeTeamID));
            teammgr.setPoints(currentPointsGuest + 1, teammgr.getById(guestTeamID));
        }
    }