public int executeUpdate(String query) {
		int resultCode = 0;			// result code from SQL update
		System.out.println("MySQL DAO execute");
		 // --- 3) prepare and execute statement
		   stmt = null;		// SQL statement object
		   rset = null;		// statement result set object
		   //    get resultset
		   System.out.println("query: " + query);
		   try
		   {
			  stmt = conn.createStatement();
			  //System.out.println("Statement : " + stmt);
			  resultCode = stmt.executeUpdate(query);
			  //System.out.println("ResultSet : " + rset);
			  
			  if (resultCode == 0) {
				   errorLogs.getErrorMsgs().add("DATABASE ERROR: Insert failed");
				   System.out.println("Insert failed");
			   }
			   else {
				   //System.out.println("Insert successful");
			   }
			  
		   }
		   catch (Exception e)
		   {
			   System.out.println("DATABASE ERROR: Could not execute SQL INSERT statement");
			   errorLogs.getErrorMsgs().add("DATABASE ERROR: Could not execute SQL INSERT statement");
			   System.out.println(e.getMessage());
			 //  System.exit(1);
		   }

		return resultCode;
	}