public String deleteQuery(String table, String id) {
		String query = "DELETE FROM " + table + " WHERE ";
		if (table.equals("Prisoner")) {
			query += "pid = " + id;
		} else if (table.equals("Security")) {
			query += "sid = " + id;
		}
		try {
			state.execute(query);
		} catch (SQLException e) {
			// TODO Auto-generated catch block
			return e.getMessage();
		}
		return "Deleted";
	}