public String[][] castQueryToMatrix(ArrayList query, int size){
        String [][] matrix = new String[size][];
        for(int i= 0; i < size; i++){
            matrix[i] = (String[]) query.get(i); }
        return matrix;
        /*
         * Use example:
         *  ArrayList query = (ArrayList) db.throwQuery("SELECT * FROM techs", 1);
         *  String [][] result = db.castQueryToMatrix(query, query.size());
         *   for(String[] s: result){
         *   System.out.println(s[0] + ": " +s[1]); }
         */
    }