@Override
	public void saveTroubleTicket(TroubleTicket troubleticket)
	{
		int ID = troubleticket.getID();
		
		String userName    = troubleticket.getUserName();
		String callerName  = troubleticket.getCallerName();
		String description = troubleticket.getDescription();
		String dateTime    = troubleticket.getDateTime();
		
		if (userName == null)
		{
			userName = "";
		}
		
		if (callerName == null)
		{
			callerName = "";
		}
		
		if (description == null)
		{
			description = "";
		}
		
		if (dateTime == null)
		{
			dateTime = "";
		}
		
		try
		{
			// Execute insert or update query
			executor.executeQuery(
				"INSERT INTO troubletickets (ID, userName, callerName, description, dateTime)" +
					"VALUES (" + ID + ", '" + userName + "', '" + callerName + "', '" + description + "', '" + dateTime + "')" +
				"ON DUPLICATE KEY UPDATE" +
					" userName    = '" + userName    + "'," +
					" callerName  = '" + callerName  + "'," +
					" description = '" + description + "'," +
					" dateTime    = '" + dateTime    + "'");
		}
		catch (ExecutorException e)
		{
			e.printStackTrace();
		}
		
		System.out.println(
			"INSERT INTO troubletickets (ID, userName, callerName, description, dateTime)" +
				"VALUES (" + ID + ", '" + userName + "', '" + callerName + "', '" + description + "', '" + dateTime + "')" +
			"ON DUPLICATE KEY UPDATE" +
				" userName    = '" + userName    + "' AND" +
				" callerName  = '" + callerName  + "' AND" +
				" description = '" + description + "' AND" +
				" dateTime    = '" + dateTime    + "'");
	}