Remove the cache column index, use the indices directly

When a database query is performed, the indices for every named column
corresponds to its position in the query list. There is no need to go
through an intermediate columns array.