public boolean isItPossibleToMove(int playlistId, int songId, int newPos) throws SQLException {
        int[] results = DBM.getSeqAndMaxSeq(playlistId, songId, newPos);
        int currentSeqNum = results[0];
        int maximumSeqNum = results[1];
        int minimumSeqNum = results[2];

        if (newPos == -1) {
            if (currentSeqNum != minimumSeqNum) {
                return true;
            } else {
                return false;
            }
        } else if (newPos == 1) {
            if (currentSeqNum != maximumSeqNum) {
                return true;
            } else {
                return false;
            }
        }
        return false;
    }