Add index as array support to fetchAll()