C++ API using TWS posix library and sqlite