Delete duplicate code on fetchRow and fetchAll methods. Add getPdoFetchType method.