public void insertPatientData(Patient myPatient) throws SQLException{  
      
                try {
            databaseConnector = myConnector.getConnection();
                 
            SQLQuery = "INSERT INTO familydoctor.patient "+"VALUES(?,?,?,?,?,?,?,?,?,?) ";
            PreparedStatement preparedStatement = databaseConnector.prepareStatement(SQLQuery);
            
            preparedStatement.setString(1, myPatient.getName());
            preparedStatement.setString(2, myPatient.getAge());
            preparedStatement.setString(3, null);
            preparedStatement.setString(4, myPatient.getGender());
            preparedStatement.setString(5,myPatient.getFamilyName());
            preparedStatement.setString(6, myPatient.getContactNo());
            preparedStatement.setString(7,null);
            preparedStatement.setString(8,null);
            preparedStatement.setString(9,null);
            preparedStatement.setString(10, null);
            preparedStatement.executeUpdate(); 
            
        } 
         catch (SQLException e) {
            System.out.println(e.getMessage());
          } 
          
         finally {
            if (stmnt != null) {
                stmnt.close();
            }
            if (databaseConnector != null) {
                databaseConnector.close();
            }
        }
    }