private void deleteGraph(ActionRequest actionRequest,
ActionResponse actionResponse) {
String graph_id = actionRequest.getParameter("graph_id");
String name = actionRequest.getParameter("name");
actionResponse.setRenderParameter("graph_id", graph_id);
DBManager DBase = new DBManager();
Connection con = DBase.getConnection();
try {
// remove the graph
PreparedStatement pStmt = con
.prepareStatement("DELETE FROM graphs WHERE graph_id="