basic export functionality
NULL-terminated sqlite3_prepare_v2 call