building driver for monetdb imitating python api