sqlite3: clear bindings on errors and more care with return

* call sqlite3_clear_bindings when step fails
* more miss-placed returns

Signed-off-by: Adrian Negreanu <adrian.m.negreanu@intel.com>
Merge pull request #92 from groleo/sqlite3-fixes

sqlite3: clear bindings on errors and more care with return