Add document root in result array from fetchAll method