private boolean checkWordForDuplicate (String motherLangWord, String translation) throws SQLException {
        boolean hasDuplicate = false;
        Connection conn = null;
        try {
            conn = DriverManager.getConnection(Utils.DB_URL);
            PreparedStatement motherLangWordPStat = conn.prepareStatement("SELECT motherlang_word FROM word WHERE motherlang_word = '" + motherLangWord + "'");
            PreparedStatement translationPStat = conn.prepareStatement("SELECT foreignlang_word FROM word WHERE foreignlang_word = '"+ translation +"'");
            ResultSet motherLangWordResSet = motherLangWordPStat.executeQuery();
            ResultSet translationResSet = translationPStat.executeQuery();
            if (motherLangWordResSet.next() && translationResSet.next()) {
                hasDuplicate = true;
            }
        } catch (SQLException e) {
            e.printStackTrace();
        }
        finally {
            conn.close();
            return hasDuplicate;
        }
    }