public int add(sols.Model.Section section) {
        int generated_Sec_ID=-1;
        StringBuffer sql = new StringBuffer();
        sql.append("INSERT INTO Section");
        sql.append("(`Section_ID`,");
        sql.append("`Exam_ID`,");
        sql.append("`Section_Name`,");
        sql.append("`TimeLimit`)");
        sql.append("VALUES");
        sql.append("('" + section.getSection_ID() + "',");
        sql.append("'" +section.getExam_ID() + "',");
        sql.append("'" +section.getSection_Name() + "',");
        sql.append("'"+new SimpleDateFormat("HH:mm:ss").format(section.getTimeLimit()) + "');");

        try {
            SQLHelper sQLHelper = new SQLHelper();
            sQLHelper.sqlConnect();
            ResultSet rs = sQLHelper.runUpdate2(sql.toString());

            if (rs.next()) {
                generated_Sec_ID=rs.getInt(1);
            } 
        } catch (SQLException ex) {
            Logger.getLogger(Section_DAO.class.getName()).log(Level.SEVERE, null, ex);
        }
        return generated_Sec_ID;
    }