public boolean AddNewCriminal(Criminal c)
		{
			boolean answer = false ;
	       //Class.forName();
			 try {
				 

		           // Class.forName("sun.jdbc.odbc.JdbcOdbcDriver");
		            //con=DriverManager.getConnection("jdbc:odbc:CriminalDB","","");

				 
				Class.forName("org.apache.derby.jdbc.ClientDriver").newInstance();
						 
			    
					con = DriverManager.getConnection("jdbc:derby://localhost:1527/CriminalRecordDb;");
					String str="insert into Criminal(CriminalID ,CriminalFirstName,PunishmentID,RetinaScan,FingurePrint,DNA,HealthCondition,workassigned ,CellNo) values (" + c.getCriminalID() + ",'" + c.getCriminalName() +"',"+ c.getPunishmentId() +",'" + c.getRetinascan()+ "','"+c.getCriminalFingurePrint() + "','"+c.getCriminalDNA()+"','" + c.getBloodGroup()+ "','" + c.getWorkassigned() + "'," + c.getCellNo()+")";
					
			
					stmt = con.createStatement();
					int i= stmt.executeUpdate(str);
					
					if(i > 0)
					{
						answer = true;
					}
					
					else
					{
						answer = false;
					}
					
					
			 }
			 
			 
			 	catch (Exception e) {
					// TODO Auto-generated catch block
					e.printStackTrace();
				}
	       
	       
		  return answer;
		}