Function will help work with query results.
For this table:
```
idx|text
1|test1
2|test2
```
`sql.js` result is:
```
[
{
columns: ['idx', 'text'],
values: [
[1, 'test1'],
[2, 'test2'],
],
},
];
```
This function converts this into:
```
[
{ idx: 1, text: 'test1' },
{ idx: 2, text: null }'test2' },
]
```