sqlops: use row index for storing result of sql_pvquery()

- reported by Savolainen Dmitri, FS#487