sqlite3: use the new qtools API

Signed-off-by: Adrian Negreanu <adrian.m.negreanu@intel.com>
Merge pull request #86 from groleo/qtools-API-update

sqlite3: use the new qtools API