Translated functions for virtuoso-t and isql.

Translated from Python. Next TODO items: to implement function for
executing query, to test, and to adapt old functions to work for
Virtuoso instead.