public void insertChequeData(cheque inputCheque) throws SQLException{  
        
            try {
                databaseConnector = myConnector.getConnection();
                 
                SQLQuery = "INSERT INTO familydoctor.cheque "+"VALUES(?,?,?,?)";
                PreparedStatement preparedStatement = databaseConnector.prepareStatement(SQLQuery);
                preparedStatement.setInt(1, 0);
                preparedStatement.setString(2, inputCheque.getBankName());
                preparedStatement.setString(3, inputCheque.getInputDate());
                preparedStatement.setFloat(4, inputCheque.getChequeAmount());
             
                preparedStatement.executeUpdate(); 
            
            } 
            catch (SQLException e) {
                System.out.println(e.getMessage());
            } 
          
            finally {
                if (stmnt != null) {
                    stmnt.close();
                }
                if (databaseConnector != null) {
                    databaseConnector.close();
                }
            }
    }