Improve the sqlite SELECT statements by providing a row_factory