[web-db] add function for parsing SQLite query
Summary:
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: 'test2' }, ]
Test Plan: Run tests from D7119
Reviewers: michal, tomek, ashoat
Reviewed By: ashoat
Subscribers: ashoat, atul
Differential Revision: https://phab.comm.dev/D7118