public List<bank> retriveBankinfo() throws SQLException{
        
        List<bank> bankInfo=new ArrayList();
        try{
            databaseConnector=myConnector.getConnection();
            stmnt=(Statement) databaseConnector.createStatement();
            
            SQLQuery="SELECT * FROM familydoctor.bank";
            dataSet=stmnt.executeQuery(SQLQuery);
          
            while(dataSet.next()){
                bankID=dataSet.getInt("bankID");
                bankName=dataSet.getString("bankName");
                accNo=dataSet.getInt("accNo");
                accBalance=dataSet.getFloat("accBalance");
                
                tempBank=new bank(bankID, bankName, accNo, accBalance);
                bankInfo.add(tempBank);
            }
        }
        
        catch(SQLException e){
            System.out.println(e.getMessage());
        }
        
        finally{
            if(stmnt!=null)
                stmnt.close();
            if(databaseConnector!=null)
                databaseConnector.close();
        }
        
        return bankInfo;
        }