modified the asArray() method to return ['rows']