public void store(String callId, ArrayList<ContextItem> context) {
		if(callId == null || context == null) {
			return;
		}
		
		String contextString = contextToXML(context);
		
		Connection conn = null;
		try {
			Class.forName(JDBC_DRIVER);
			conn = DriverManager.getConnection(DB_URL, USER, PASSWORD);
			
			Statement statement = conn.createStatement(ResultSet.TYPE_SCROLL_INSENSITIVE, ResultSet.CONCUR_UPDATABLE);
			String sql = "select * from " + table + " where "
					+ "callId='" + callId + "'";
			ResultSet rs = statement.executeQuery(sql);
			if(rs.next()) {
				rs.updateString("context", contextString);
				rs.updateRow();
			} else {
				rs.moveToInsertRow();
				rs.updateString("callId", callId);
				rs.updateString("context", contextString);
				rs.insertRow();
			}
			System.out.println("Database updated");
			
			rs.close();
			statement.close();
			conn.close();
		} catch (Exception e) {
			e.printStackTrace();
		} finally {
			if(conn != null){
				try{
					conn.close();
			    } catch(SQLException se) {
			    	se.printStackTrace();
			    }
			}
		}
	}