private Team resultSetToTeam(ResultSet rs) throws SQLException {
        Team team = new Team();
        team.setId(rs.getLong("id"));
        team.setName(rs.getString("name"));
        team.setCoach(rs.getString("coach"));
        switch (rs.getString("status")) {
            case "REFEREE":
                team.setStatus(TeamStatus.REFEREE);
                break;
            case "REFEREE_REQUIRED":
                team.setStatus(TeamStatus.REFEREE_REQUIRED);
                break;
            case "NOVICE":
                team.setStatus(TeamStatus.NOVICE);
                break;
            case "INDEPENDENT":
                team.setStatus(TeamStatus.INDEPENDENT);
                break;
        }
        return team;
    }