DQSEGDB client library and functions